nomadjimbob / mikio

Customizable, Bootstrap 4 inspired template for Dokuwiki
GNU General Public License v2.0
22 stars 6 forks source link

Include hooks in order to add umami tracking code #63

Closed tarbib closed 5 months ago

tarbib commented 5 months ago

Hello, I'm trying to: "To track stats for this website, place the following code in the ... section of your HTML." It seems I could edit a meta.html file in order to do so but I could not find the file. https://www.dokuwiki.org/template:dokuwiki#supported_include_hooks Is it supported with mikio? Thanks

nomadjimbob commented 5 months ago

Yes, simply create the file in the directory and it will be seen by mikio and used.

tarbib commented 5 months ago

Thanks for your reply @nomadjimbob ! I did this : image With this code: `

` or

but I don't get any hits on umami side. Did I do correctly on the Dokuwiki side? Thanks

nomadjimbob commented 5 months ago

That should work fine. You can confirm it is generating correctly by browsing the site and viewing the source.

Screenshot 2024-02-03 at 7 20 30 am

The browser console log may also provide additional clues.

If you are self hosting umami on a separate domain, it could be a CORS issue between the two domains.


My async="" is just the result of autocomplete in PHPStorm, it wasn't intentional.

tarbib commented 5 months ago

Thank you for the tip of checking source! It looks like it works now thank you FTR I took out the <head> </head> from my meta.html file.