Skip to content

Update Analytics Dashboards' viewed/created/edited tracking events

What does this MR do and why?

Passes dashboard's title to label property and introduces monthly/weekly count metrics for the following tracking events:

  • user_viewed_builtin_dashboard
  • user_viewed_custom_dashboard
  • user_viewed_dashboard
  • user_created_custom_dashboard
  • user_edited_custom_dashboard

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No visual changes.

How to set up and validate locally

To set up Product Analytics feature:

  1. Follow these instructions to setup Product Analytics in GDK.
  2. Onboard Product Analytics by setting up the feature at Project > Analytics > Analytics dashboards.

To verify that the dashboard's title is being passed to each event's label property:

  1. Navigate to Project > Analytics > Analytics dashboards.
  2. View any dashboard marked with Created by GitLab to trigger the user_viewed_builtin_dashboard event.
  3. Click on New dashboard to create a new dashboard.
  4. Create a new dashboard to trigger the user_created_custom_dashboard event.
  5. Open your newly created custom dashboard to trigger the user_viewed_custom_dashboard event.
  6. Edit your newly created custom dashboard to trigger the user_edited_custom_dashboard event.
  7. Viewing any analytics dashboard should also trigger the user_viewed_dashboard event.

Related to #463076 (closed) and https://gitlab.com/gitlab-data/product-analytics/-/issues/1829#note_1928445735

Edited by Rudy Crespo

Merge request reports