Add data tracking to super sidebar panels
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.
- Enable the
super_sidebar_nav
feature flag. - Log into the GDK and enable the New Navigation for the current user via the User Menu
- Have a look at the menu items (not the sections) All of them should have
data-track
attributes - Optionally:
- Enable Snowplow in your GDK.
- Restart GDK
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Lukas 'ai-pi' Eipert