google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.23k stars 286 forks source link

Remove [Not Set] from Key Metric tiles #7884

Open wpdarren opened 10 months ago

wpdarren commented 10 months ago

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

  1. Setup Site Kit and connect the Oi.ie Analytics account.
  2. Select the Top cities driving traffic metric tile from the selection panel.
  3. Observe that the [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

Implementation Brief

Test Coverage

QA Brief

Changelog entry

jimmymadon commented 3 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.

eugene-manuilov commented 2 days ago

IB :heavy_check_mark: