I have an implementation or maybe configuration problem which I am not able to solve.
We have implemented the matomo tag manager script as per description into the website. I have configured a page view tag in the tag manager and published it.
This was done weeks ago and we still do not see any data in the Matomo Dashboard Interface. The implementation screen is also still visible. When I check the debug mode in the tag manager and the dev console I can’t see any error messages, the pageview is firing. The script implementation does not show any error. But still no data.
We have multiple different Matomo URLs for the client. For the URL which is implemented on the website I have put the same URL in the URL field for the pageview.
I have a suspicion that there must be a configuration problem as we can’t see any dev errors.
Does anyone have an idea where to look for a mistake or what to check in order to make this basic setup work?
One thing to check is that the SiteID is correct in the Matomo Variable.
You will find this within Tag Manager > Variables and edit the ‘Matomo Configuration’.
On this page, locate the Matomo idsite field and make sure this matches the SiteID of the site you are tracking. You can check the SiteID from Administration(cog icon) > Websites > Manage.
If the container was exported/imported from another website to this one, the SiteID of the previous site is also copied and needs to be manually changed.
We also have a guide here for creating the pageview tag/trigger to enusre it matches your setup - https://matomo.org/faq/tag-manager/how-do-i-track-pageviews-of-my-website-using-matomo-tag-manager/
thank you for the response.
The siteID in the Matomo Configuration matches the one under Administration.
I am not sure about the last part of your response: “If the container was exported/imported from another website to this one, the SiteID of the previous site is also copied and needs to be manually changed.”
The client has different Matomo URLs and in this setup a replica of all the websites. E.g. www.xy.com and www.xx.com have a long list of containers with IDs (1-32) but the IDs are the same in both Matomo URL setups. In this example the website we want to track has the same siteID under both Matomo URLs. Do they need to be different?
And if so where do I change it?
The SiteID will be unique for each website you have setup in Matomo.
When you edit the ‘Matomo Configuration’ variable, if the Matomo idsite matches the SiteID of the website you are trying to track, then that will be correct.
It is possible to export (download a .json file) a copy of a container from one website in Matomo and then import this into another site. Basically it’s an easy way to copy your tags/triggers from one website over to another. I often see cases where this has happened but the Matomo idsite has been retained from the previous site during the export and needs to be manually changed once imported. If this was the case, you would just edit the ‘Matomo Configuration’ variable and update the Matomo idsite field manually.
It sounds like you have everything set ok. If you can drop us an email with your website URL we can then investigate this further for you. - https://matomo.org/support/
Going back to the original question:
We have implemented the matomo tag manager script as per description into the website. I have configured a page view tag in the tag manager and published it. This was done weeks ago and we still do not see any data in the Matomo Dashboard Interface.
Sometimes an alternative to the official guide can be helpful so with humility I am going to give my own notes for How to Implement a Pageview in Matomo Tag Manager I will put asterisks next to a couple special instructions for the case where a user may already have deployed an existing (but failed) configuration.
- Make a new container. MTM >> Container >> make a new container, save [*If you already have a container, do this anyway. You can always remove an unneeded container. Multiple containers run fine and won’t interfere.]
- MTM >> Variable >> New variable (the type of variable should be “Matomo configuration”)
The Matomo interface will show you a list of values. You can accept the default values or check/uncheck. I like to enable heartbeat tracker for example.
New Tag >> Analytics >> Matomo Analytics
For your tag fields (see below), set these :
- leave as is
- leave as is
- doesn’t matter, name it something useful to remember
- Choose “Matomo Configuration”
- Leave as Page View if you are removing the default tracking code (you will need something to track page views)
- Leave blank
- Easy to forget the last step: PUBLISH!
Now look at your HTML. Is it how you want it?
Here is the script which connects Matomo Tag Manager.
You don’t need both! You can have both if you are careful that one is not redundantly tracking what the other is. The main thing as a beginner is don’t track pageviews in both. As a beginner, easiest solution for ensuring that is to remove one of them. Also that makes maintenance easier in the future, a year from now when you, or someone on your team is wondering what to troubleshoot or configure.