Add tracking for Value Stream Analytics views

What does this MR do and why?

Adds view_value_stream_analytics event that tracks when users view a value stream, either by direct navigation or dropdown selection. Captures name and ID to measure which value streams are accessed most.

References

#568389 (closed)

Screenshots or screen recordings

How to set up and validate locally

  1. Please make sure that you're on the GitLab Ultimate plan.

  2. Visit any group/project that has VSA data or follow these steps:

    1. run FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu
    2. Visit the group/project value stream. The URL is present in the output of the command above
  3. Create a new value stream

  4. Start the internal events monitor:

    rails runner scripts/internal_events/monitor.rb view_value_stream_analytics
  5. Refresh the page, and verify that the view_value_stream_analytics event is fired in the terminal

  6. Select another value stream from the dropdown, and verify that the event has been fired again with the new value stream's name and ID

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.

Related to #568389 (closed)

Edited by Rudy Crespo

Merge request reports

Loading