Skip to content

Track total visits to value streams dashboard page

Felipe Cardozo requested to merge issue_384010 into master

What does this MR do and why?

Count total number of visits to value streams dashboard page.

The metric should behave as follows:

  1. time_frame: monthly, weekly
  2. name: analytics_counts_visits.g_metrics_comparison_page
  3. both SaaS and self-manage

Next step is to record unique views for the same page.

related to #384010 (closed)

How to set up and validate locally

Execute the following at a rails console:

  # Manually increment the count for the event, can be executed many time as wanted
  Gitlab::UsageDataCounters::ValueStreamsDashboardCounter.count(:views)

  # Build the payload
  payload = ServicePing::BuildPayload.new.execute

  # Check the recorded value
  payload['analytics_counts_visits']['g_metrics_comparison_page']

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Felipe Cardozo

Merge request reports

Loading