Skip to content
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

Discrepancy in visit metrics across Matomo reports #21289

Open
heurteph-ei opened this issue Sep 20, 2023 · 9 comments
Open

Discrepancy in visit metrics across Matomo reports #21289

heurteph-ei opened this issue Sep 20, 2023 · 9 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@heurteph-ei heurteph-ei added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Sep 20, 2023
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/discrepancy-in-visit-metrics-across-matomo-reports/53254/4

@LenaGadea
Copy link

A bit more information on the issue in case it might be of relevance:

  • We are using Matomo 4.15.1

  • We do not have LOAD INFILE active. We suspect this can be significant to this issue.

  • All Active Complements
    [CustomReports] (v4.1.7)
    [DynamicDeviceDetectorCache] (v1.0.4)
    [LogViewer] (v4.1.2)
    [QueuedTracking] (v4.0.7)
    [RollUpReporting] (v4.1.4)
    [TrackingSpamPrevention] (v4.1.7)

@sgiehl
Copy link
Member

sgiehl commented Sep 22, 2023

@LenaGadea Is the site where that happens a site that is tracked or is it a roll up aggregating other sites?

@LenaGadea
Copy link

@sgiehl It is a site being tracked. We are tracking a few other sites (with less custom dimensions etc) with no problem. There was as well a roll up aggregating those other websites that started to have great delay on the data as well so we have removed it for now, but the data inconsistency on this site's reports remain.

@Stan-vw
Copy link
Contributor

Stan-vw commented Sep 29, 2023

That's quite a few different numbers across different places.

@sgiehl Are all places using the same query to calculate this metric?

@LenaGadea
Copy link

@Stan-vw it is, indeed. Also, the reports were perfectly fine and consistent for months before suddendly going crazy. No changes in any configuration. During that week we created a few custom reports and activated SEO Web Vitals plugIn. We deactivated the plugin right away, and also eliminated all the reports recently.

@sgiehl
Copy link
Member

sgiehl commented Oct 9, 2023

@Stan-vw The queries should be similar in most cases, but group by different dimensions.
This actually should only affect unique visitors, as they are sort of handled special.
I haven't check that in detail yet, but my assumption is, that this is kind of expected.

Assuming the following visits

visit id visitor id browser operating system
1 A Firefox Linux
2 B Firefox Windows
3 A Chrome Linux

So we have one visitor, that came back with different device, but was still recognized as the same visitor.

If you now built unique visitors metrics for those visits you get:

Over all unique visitors: 2

browser unique visitors
Firefox 2
Chrome 1
Totals 3
operating system unique visitors
Linux 1
Windows 1
Totals 2

From a dimension point a view those numbers would be correct, as there were two different (unique) visitors using Firefox and one using Chrome.

@LenaGadea Did you maybe start using the user id feature or another method that identifies users across devices?

@sgiehl sgiehl added Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. and removed To Triage An issue awaiting triage by a Matomo core team member labels Oct 9, 2023
@LenaGadea
Copy link

No changes were made in the tracking method. The correct data was available in the database, it was just the dashboards that that started to track very slowly and showing different metrics.
Since we eliminated the custom reports (there were 5-6, nothing too crazy) the numbers are back to normal, all the reports are consistent and look fine.
Is maybe some sort of performance problem linked to the custom reports?
As suddenly as it started failing it recovered, and the only changes made have been: eliminating the reports and adding a new MySQL read-only node.

@Stan-vw
Copy link
Contributor

Stan-vw commented Oct 10, 2023

That's interesting, thanks for writing this up and great to hear that the problem is not present anymore.
Could you perhaps elaborate what specific reports were in your custom reports, so we can look at those specifically rather than trying the find the issue across all custom report queries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

6 participants