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

Wrong percentage on Visitors Location page #14849

Closed
hedii opened this issue Sep 3, 2019 · 10 comments · Fixed by #14852
Closed

Wrong percentage on Visitors Location page #14849

hedii opened this issue Sep 3, 2019 · 10 comments · Fixed by #14852
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@hedii
Copy link

hedii commented Sep 3, 2019

Hi, there is a diff in unique visitors percent stat on the Visitors Location page (/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=day&date=yesterday&category=General_Visitors&subcategory=UserCountry_SubmenuLocations) between the Country map widget and the Country table widget.

See the pictures below (19,7% for France on the map, 23,9% for France on the table, both for the same unique visitors number).

Capture d’écran 2019-09-03 à 11 01 30

Capture d’écran 2019-09-03 à 11 01 05

@sgiehl
Copy link
Member

sgiehl commented Sep 3, 2019

Thanks for the report. I'm able to reproduce that on our demo. We'll need to look into that.
Would you mind checking which number the "totals" row is showing for the table

@sgiehl sgiehl added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 3, 2019
@hedii
Copy link
Author

hedii commented Sep 3, 2019

The table Totals row is 796 484

@sgiehl
Copy link
Member

sgiehl commented Sep 3, 2019

ok. So it differs from the number shown on the map 🤔

@hedii
Copy link
Author

hedii commented Sep 3, 2019

Yes indeed. All tables on this page (Country, Region, City) show the same unique visitors number 796 484. Only the map shows 768 820.

@PoorWei
Copy link

PoorWei commented Sep 4, 2019

Similar issue here, seems wrong calculation under World-Wide level.
Probably forgot changing denominator when select other views except "Visits"

Take following picture as example:
Visits taken in Taiwan is 1361 / 1744 = 78%

Same calculation, actions taken in Taiwan should be: 7172 / 9747 = 73.6%
but it shows 7172 / 1744 = 411%

image

image

@sgiehl
Copy link
Member

sgiehl commented Sep 4, 2019

Yes. The percentage calculation is incorrect. It always uses the visit count on world map. I'll prepare a fix for that.

The number of unique visits displayed as total on the visitor map might differ for the following reason:
The total numbers are fetched from the visit summary, which includes the overall unique visitors. The country reports calculates the unique visitors based on the country, so people switching the country might be counted multiple times in the country report, but only once in the summary.

@mattab Shall we use a summed up value for this case, so the number of unqiue visitors matches the country report?

@mattab
Copy link
Member

mattab commented Sep 10, 2019

@sgiehl not sure I understand the comment, but we generally want the map to use Visits of a country divided by the total visits metrics (from visit summary), or if the map shows unique visitors for a country, then to calculate ratio against Unique visitors (from visit summary) overall.

@sgiehl
Copy link
Member

sgiehl commented Sep 10, 2019

sure. that works smoothly for all metrics except unique visitors. The sum of all unique visitors in the country table is another number than the one in visitor summary. That might be caused by the way how unique visitors are calculated for each country. Maybe that is a bug 🤷‍♂️

That means the percentage shown on the map is then another one as in the country table...

@mattab
Copy link
Member

mattab commented Sep 10, 2019

That's a bit strange, do you have an example screenshot (showing also the calendar) where this can be seen?

@sgiehl
Copy link
Member

sgiehl commented Sep 10, 2019

Sure. You can see that for every site on demo. Simply go to locations page and enable the totals row of the country report:

image

@mattab mattab added this to the 3.12.0 milestone Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants