Skip to content

Resolve "Add missing snowplow tracking to primary navigation"

What does this MR do and why?

Fires structured snowplow events for actions which currently lack them. Specifically, this adds events to the main menu toggle button (the hamburger icon), and the focus state of the global search input.

Screenshots or screen recordings

after global search focus
focus
after global search blur and menu toggle
toggle

How to set up and validate locally

  1. Set up Snowplow tracking in your local GDK instance
  2. Install the Snowplow debugger Chrome extension
  3. Navigate to your local GDK and sign in
  4. Visit any page where the top navigation menu is visible
  5. Open the snowplow debugger panel
  6. Click on the navigation menu toggle and notice the click_nav event is firing with label hamburger_menu
  7. Click on the global search input and notice the focus_input event is fired with label global_search
  8. Click anywhere else to blur the field and notice the blur_input event is fired with label global_search

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 #376712 (closed)

Edited by Mike Greiling

Merge request reports