Add tab label to g_compliance_dashboard tracking

What does this MR do and why?

Add tab label to group compliance dashboard tracking

  • Augment the existing tracking for g_compliance_dashboard with a label attribute that indicates the requested tab from the VUE portion of the URL.

    This is to be able to have more data in tracking which tabs get rendered, apart from the frontend tracking that tracks clicks on the individual tabs.

Why: It's currently hard to distinguish which page is rendered initially without resorting to parsing the URL after the fact, and seems like it would be very compute intensive for metrics.

References

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Enable snowplow micro in GDK (cat doc/howto/snowplow_micro.md for steps)
  2. Visit compliance dashboard for an ultimate group
  3. Visit snowplow micro logs e.g. http://localhost:9091/micro/good
  4. You should see an event containing "se_action":"g_compliance_dashboard","se_label":"compliance_status"

MR acceptance checklist

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

Edited by SAM FIGUEROA

Merge request reports

Loading