Open wpdarren opened 10 months ago
This issue is related to #7737. In that issue, we identified the cause of "(not set)" records to be the fact that we do not track custom dimensions like categories and authors for all post types. This does not explain "not set" as a value for cities which might simply be untracked at times. Based on my observation, the number of not set records for cities is much larger than countries on all of my live sites with real data. So there could be an issue where the city isn't always being sent with all events being tracked.
Anyway, this means we will have to make a decision to filter out 'not set' from all our key metric tile reports where the possibility of the dimension value could be not set. I suppose this will require approval from a merge reviewer (tagging @aaemnnosttv, @techanvil and @eugene-manuilov as they were involved in the related issue) and also @andreylipattsev.
IB :heavy_check_mark:
Bug Description
While completing testing on Key Metric Widget, I noticed that the
Top cities driving traffic
metric tile has a[not set]
entry appearing. I feel we need to filter these out from all metric tiles as it's not helpful.We did remove it from the custom dimension tiles.
Private Zenhub Image
Steps to reproduce
Top cities driving traffic
metric tile from the selection panel.[not set]
is appearing in the top 3 cities.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
(not set)
rows in all key metrics tiles.(not set)
should have a dimension filter to filter out such rows. Currently, this affects theMost popular countries
andMost popular cities
tiles (in addition to the popular products, popular authors and popular categories tiles where not set is already being filtered out).Implementation Brief
assets/js/modules/analytics-4/components/widgets/TopCountriesWidget.js
andassets/js/modules/analytics-4/components/widgets/TopCitiesWidget.js
:assets/js/modules/analytics-4/components/widgets/PopularAuthorsWidget.js
.dimensionFilters
as the above file forcountry
andcity
dimensions appropriately.Test Coverage
QA Brief
Changelog entry