Incorrect figures in All Traffic widget pie charts #10243
Labels
Module: Analytics
Google Analytics module related issues
P0
High priority
Team M
Issues for Squad 2
Type: Bug
Something isn't working
Type: Support
Support request
Bug Description
As reported in the support forum, the "others" segment in the Locations pie chart does not have the correct user count.
Furthermore, the percentages displayed in the pie chart tooltips can differ from the percentages displayed in the chart. This has been observed in the Channels pie chart.
Steps to reproduce
Screenshots
All Traffic widget:

Here's the All Traffic widget for context. Note that a custom 1 day range is specified, this was introduced for testing in order to ensure the "all visitors" count was not rounded. The defects will occur regardless of the date range.
It's important to note that the sum of the user counts in the segments may not match the "all visitors" count. This is to be expected, because users may be counted multiple times if they appear in different segments. The percentages displayed should therefore be relative to the sum of the segments in order to provide a meaningful comparison (essentially, so that the percentages add up to 100%). The percentages currently displayed in the segments are correct, while the tooltips can be incorrect as shown below.
Channels pie chart:

Here it can be seen that the percentages displayed in the tooltips don't match the percentages displayed in the chart.
Locations pie chart:

Here it can be seen that the "others" segment in the Locations pie chart does not have the correct user count (clearly, 17.6% should be less than 19 users if 5.9% is 9 users. The example provided in the forum post provides a more readily apparent example of this defect).
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: