New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating to matomo 4, visitors seems to have gone down #16933
Comments
Looking at "Visits in Real-time", it doesn't seem to be showing frequent visits like it used to be, which could be an indication that tracking is broken or something? "Thursday, December 10, - 13:53:54 (46 min 21s)" is an entry I see. |
Oh! I'm seeing 204s
I didn't see 204s in access log from before we upgraded |
forcing it use GET isn't fixing it either. |
Disabling Queued Tracker seems to have got "Visits in Real-time" working again. |
Do you use a Content Security Policy? Could this be caused by #16935? |
Yeh, we use a CSP. Though the thing is after disabling Queued tracker, it started tracking again. |
@juliemoynat the average generation time metric was dropped in Matomo 4. There won't we any new values tracked for it. You can have a look at the Page Performance metrics instead, they should be more valuable. |
@sgiehl would you have any idea why? Is it due to improved tracking if you don't allow cookies? E.g we have https://github.com/miraheze/MatomoAnalytics/blob/master/includes/MatomoAnalyticsHooks.php#L73 |
Do I see this right that it means we can close this issue in queued tracking? matomo-org/plugin-QueuedTracking#143 Maybe it is related to the CSP. Have you tried adjusting it already? |
Hi, I had the same problem of loss of visitors on my site after the installation of Matomo 4.0.3. The installation of the updates 4.0.4 then 4.0.5 did not solve the problem. My site is smaller so the drop was less spectacular. However, the visits indicated in Matomo did not correspond to the curve of the visits of my host nor to that of the Google Search Console. I had already put a message here that I deleted afterwards. I was saying that the CSP rules update hadn't changed anything. I don't have the "Queued tracking" module installed on my side. I put a message again because I succeeded in solving my problem but I don't have a clear step to take so that others with the problem can correct it but it might give some clues for Matomo to solve the problem.
So, I tinkered with the files and the database and now it's working again. I don't have any explanation for this but something was broken, a priori, in the database of my Matomo. |
After updating to 4.0.0, metrics went down (using CSP headers as well)
|
BTW It might be worth enabling tracking logging see https://developer.matomo.org/api-reference/tracking-api#debugging-the-tracker and logging to a file https://matomo.org/faq/troubleshooting/faq_115/ You basically want to make sure in your
This will write log data into After few hours or so you should remove again the I'm not sure if it was mentioned before but you should in any case check your "Matomo System check" which you find in the Matomo Admin section. It sounds like maybe some file was not correctly removed when it should have maybe @juliemoynat . That's just a guess though. Maybe this file caused some tracking error or so. I suppose you did check the system report when you noticed the tracking issues? |
BTW It might be worth enabling tracking logging see https://developer.matomo.org/api-reference/tracking-api#debugging-the-tracker and logging to a file https://matomo.org/faq/troubleshooting/faq_115/ You basically want to make sure in your
This will write log data into After few hours or so you should remove again the I'm not sure if it was mentioned before but you should in any case check your "Matomo System check" which you find in the Matomo Admin section. It sounds like maybe some file was not correctly removed when it should have maybe @juliemoynat . That's just a guess though. Maybe this file caused some tracking error or so. I suppose you did check the system report when you noticed the tracking issues? (it would have shown if some files needed deleting) |
@tsteur I had no error in the "File integrity" section and I still have no error now. I've compared my folders: my Matomo 4 folder before I tinkered with files and database and my Matomo 4 after (now). I only have more files and folders now, not less. Here is my report: Some new plugins folders but I think it's not important because they are examples and test runner:
I have some empty folders, and some .git and .github folders. I have a lot of new files in tmp/templates_c/ and some CSV files in tmp/assets/ but I think it's normal. And all the files below are in my new installation but were not in my initial installation. I don't know if it's normal or not.
That's all. |
This is working fine now, if you still experience an issue please create a new issue |
I'm not sure if this is because of better tracking under matomo 4 or a bug/issue. See below photo (you can tell when we deploy matomo 4)
We did disable cookies being created with
disableCookies
in the js code (though this was done like earlier this year under matomo 3).Our config is:
The text was updated successfully, but these errors were encountered: