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
[Bug] Segments: Filtering by country results in inconsistent data #22142
Comments
Hi @itslewin |
We indeed seem to have a problem in the months from May to September, where the segment filters all visitor data for some reason. April and October are only slightly incorrect. For the first and last few month the data is correct. |
I can imagine various reasons why that can be that case.
|
Thank you, indeed our setup was the issue. Sorry to bother you! |
What happened?
We have a self-hosted instance of Matomo 5.0.3 running on our servers and are running into an issue when filtering Matomo statistics by user country.
We created a segment that should exclude data for visitors in Luxembourg:
Data from Luxembourg is also successfully excluded, however we also lose a bunch of data points from other countries.
This is the visitor location overview without any custom segments (all visits):
This is the visitor location overview with the above segment enabled (Country is not Luxembourg):
You can see that visits drop dramatically for all countries, even though the segment should only touch data from Luxembourg.
Are we using it wrong? Is there any indication why this behaviour could happen?
What should happen?
Excluding data from one country (e.g. Luxembourg) should not change data points from other countries, just remove the data points from the specified country.
How can this be reproduced?
Click on Visitors > Click on Locations > Enable Country excluding Segment > Compare statistics
Matomo version
5.0.3
PHP version
No response
Server operating system
No response
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: