Tracking navbar links not behind dropdowns in Snowplow

Problem to solve

This is a follow-up issue from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7787#note_121000656.

In https://gitlab.com/gitlab-org/gitlab-ee/issues/7427, we wanted to send an event to Snowplow when a link is clicked in the top navbar to better understand how users interact with our navigation.

In https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7787, this was implemented for dropdown elements that do not browse the user away from the page.

We should still try to solve this for navbar links that are not behind dropdowns, so that we can see how often a user is clicking on links like "Milestones" and "Snippets".

Target audience

Primarily for Product Managers, UXers, and FE engineering at GitLab.

Proposal

TBD. @wortschi explored some ideas in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7787#note_120635323, which are copied below.

What does success look like, and how can we measure that?

  • We're able to measure clicks on all top navbar elements and see these events appear in our DW.

Links / references

Assignee Loading
Time tracking Loading