Fix Unique visitors and Users metric shown in Users report #22670
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Fix #19850
Removes Users and Unique Visitors metrics from the Users report. Those metrics don't make sense considering they would be always "1" except for the others row.
I also thought about additionally removing it from the API response (see diff below) but wasn't sure if we consider this a breaking API change. Figured in the API response the output of those metrics doesn't hurt as much and we can keep it there. In the UI the unneeded metrics "hurt" more considering it's processed by humans and it causes distraction.
Steps to reproduce
https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?period=day&date=2022-10-10&idSite=1&category=General_Visitors&subcategory=UserId_UserReportTitle
Review