Open 9joshua opened 10 months ago
@9joshua
If a user comes twice a day, every day:
Each day he will be counted as 1 uniquer visitor.
Each month he will be counted as 1 unique visitor (if enable_processing_unique_visitors_month=1
).
But sum of unique visitors of each day will be 30 (or 28,29, 31 depending on the month ;-) ).
Hi @heurteph-ei Thanks for replying. In this case I have compared the sum of daily unique visitors for both the Country report and the Visits Overview report (see screenshots).
Hi @9joshua Then are you comparing unique visitors per country vs. unique visitors globally? If a user uses VPN for example (or is border dweller), and is located in one country during a visit, and in another country for a second visit the same day, he will appears as unique in both countries...
This might be a matter of the actual calculation. Haven't looked at the code, but I think the the "global" unique visitor metric is the only metric that might be calculated "correct" for the whole month. The unique visitors metric within other reports might be simply summed up across periods.
What happened?
When exporting the Visitors -> Location -> Country table, the Unique Visitors metric is almost always greater that the actual number of Unique Visitors shown in Visitors -> Overview.
In the screenshot below the number of Unique Visitors shown on the map view agrees with the visitors overview total. However, adding the totals for each country shown on the map agrees with the Country table totals...
This could be due to some visitors having dynamic IP addresses, which when changed, result in Maxmind not correctly identifying the same country on their next visit. However, when creating a segment report for a specific country there is still a discrepancy between Unique Visitors by Country and Unique Visitors in Visitors -> Overview...
When using a segment by a specific country, any specific day shows the Unique Visitors by Country and the Unique Visitors in Visitors -> Overview agree. However, this is not the case with a country segment is not applied.
What should happen?
The Unique Visitors metric as exported in the Visitors -> Location -> Country table should at least agree with the sum of daily Unique Visitors shown when exporting the Visitors -> Overview -> Visits Overview chart when a single country is specified for a segment. Fixing this would likely improve related discrepancies when a segment is not applied.
How can this be reproduced?
Matomo Version
Matomo 5
Matomo Patch or Minor Version
5.0
PHP Version
8.1
Server Operating System
NA
What browsers are you seeing the problem on?
No response
Computer Operating System
NA
Relevant log output
No response
Validations