Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Can‘t get Matomo to track

  • #9615
    Avatar photo[anonymous]

    I have installed the on-premise version of Matomo on a subdomain and added the plugin to my site. I can see the script code in my site’s source code, but although I know for certain that I have many visitors on the site, upon loading my Matomo site each time I see the installation code and the note that it hasn’t been installed yet. I can then opt to hide that message for an hour, but even so zero visits or visitors are being tracked. What am I missing?

    #9725
    Avatar photo[anonymous]

    Sorry to bump this, but I could really use some pointers here.

    • I’m using Publii  version 0.41.1 (0.41.1) with the Mercury theme (v. 2.4.0.0) and the lastest, freshest installation of Matomo on-premise on a subdomain.
    • The Matomo plugin is installed in Publii and switched to the “on” position
    • When I peek at my site’s source code in the browser, I can see that the Matomo tracking code is embedded in the <head> portion.
    • Yet when I log into my Matomo dashboard, I always get the message, that tracking code needs to be installed/embedded. I can then choose to hide that message for an hour.
    • In the Matomo dashboard, not a single visitor or page view is being tracked, even though I know for certain that I have hundreds of visitors after publishing a new blog entry. I get feedback on my articles on Twitter, Mastodon etc.
    • I use the Matomo Dashboard to track another website that runs on wordpress and that site’s visits are being tracked just fine.
    • In the Matomo system check it says that there are not tracking errors. Every single item on the list has a green checkmark, only one area is on orange alert and that’s about setting up a cron-job, which is not mandatory or necessary, just optional.

    I simply don’t know where to look any longer. From all that I gather I’ve set up Matomo correctly and possibly made an error within Publii’s settings, but I don’t know what or where. Please help.

    #9726
    Avatar photo[anonymous]

    Hi,

    Could you provide URL to your website? It would make debugging easier on our side 🙂

    #9727
    Avatar photo[anonymous]
    This reply has been marked as private.
    #9728
    Avatar photo[anonymous]

    I see two issues in your configuration:

    1) You did not set Cookie Group ID – probably you thought that the placeholder text is a default value – please fix it
    2) Please use https instead of http in a link to your Matomo instance

    That should solve your issues

    #9729
    Avatar photo[anonymous]

    Thank you, I’ll test it and hope this does the trick. And yes, I thought the placeholder text was a default value.

    #9730
    Avatar photo[anonymous]

    All right, it works! And I had to add a slash after the link to my Matomo instance. The browser console showed an error, the Beacon API couldn’t load otherwise.

    Thank again for your help!

    #9731
    Avatar photo[anonymous]

    Great to know that it solved your issues 🙂