Skip to content

Fix "Click Events" measure has it has no corresponding data in snowplow

What does this MR do and why?

This MR implements the new linkClicksCount measure to fix the Click Events not working within the Visualization Designer since we swapped over to Snowplow.

And while I was there, I also corrected some variable names as they didn't match our code style.

Screenshots or screen recordings

Before After
Table visualization image image
Code view image image

Screen_Recording_2023-10-04_at_12.01.08

How to set up and validate locally

  1. Make sure your local GitLab repo is running with a GitLab Ultimate licence.
  2. Follow these instructions to set up Product Analytics in your GDK.
  3. Visit the visualization designer, e.g. http://gdk.test:3000/gitlab-org/gitlab-test/-/analytics/dashboards/visualization-designer.
  4. Select the “Link Click Events” → “All Link Clicks” measure.
  5. Confirm a visualization appears and that you can select the drill-down dimensions “Target ID” and “Element ID”.
  6. Save the visualization and go back to the dashboard listing.
  7. Create a new dashboard or edit a custom dashboard.
  8. Select your new visualization and validate that it appears correctly on the dashboard.

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

Edited by Robert Hunt

Merge request reports