Skip to content

Add data tracking to super sidebar panels

Lukas 'ai-pi' Eipert requested to merge leipert-ids-for-new-sidebar into master

What does this MR do and why?

Expose menu item id in super sidebar

This allows us to use the ID for purposes like e.g. pinning items, qa specs and data tracking with snowplow.

Add data tracking to super sidebar panels

This adds data tracking to the super sidebar. We currently only track data inside of panels, and only for the links (and not the sections). Links without IDs will report as item_without_id and have the super sidebar title as an extra attribute.

Screenshots or screen recordings

Screen_Recording_2023-03-27_at_17.42.37

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable the super_sidebar_nav feature flag.
  2. Log into the GDK and enable the New Navigation for the current user via the User Menu
  3. Have a look at the menu items (not the sections) All of them should have data-track attributes
  4. Optionally:
    1. Enable Snowplow in your GDK.
    2. Restart GDK
    3. Click a link in the new nav, an event to some /tp2 endpoint should have been fired.

MR acceptance checklist

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

Edited by Lukas 'ai-pi' Eipert

Merge request reports