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
Screenshots or screen recordings
How to set up and validate locally
-
Please make sure that you're on the GitLab Ultimate plan.
-
Visit any group/project that has VSA data or follow these steps:
- run
FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu - Visit the group/project value stream. The URL is present in the output of the command above
- run
-
Start the internal events monitor:
rails runner scripts/internal_events/monitor.rb view_value_stream_analytics -
Refresh the page, and verify that the
view_value_stream_analyticsevent is fired in the terminal -
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)