Skip to content

Show distinct set of URLs for pages in the Behavior -> Top Pages panel

Elwyn Benson requested to merge 432491-top-pages-url-grouping into master

What does this MR do and why?

Fixes issue with the top_pages visualization where page paths were mistakenly being split by hash / query param.

Paths are now grouped together, allowing you to more easily see counts for each page instead of needing to manually add them up.

The visualization schema has changed to support this, allowing links config to recieve an array of href dimensions, instead of just a single dimension. When multiple dimensions are provided for href (e.g. baseUrl, pagePath), the values are joined to create the URL.

Note: Analytics dashboard is an experimental feature hidden behind a default off feature flag

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Follow these instructions to setup Product Analytics in GDK.
  1. Onboard Product Analytics by setting up the feature at Project > Analytics > Analytics dashboards.
  2. Ensure you have collected some page view events.
  3. Visit the Behaviour dashboard at Project > Analytics > Analytics dashboards > Behaviour.
  4. Verify that page paths only show a single time, and are not split by url hash or query param.
  5. Verify links are clickable and go to the right place.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #432491 (closed)

Edited by Elwyn Benson

Merge request reports

Loading