Add snowplow tracking to compliance center
What does this MR do and why?
Add snowplow events to the Compliance Center in order to be able to better understand how customers use the features in this dashboard.
This doubles as an example of how to add snowplow events for the compliance team.
- Add snowplow tracking to tab clicks and export buttons.
- This showcases two different kinds tracking approaches
- data-attributes based tracking can be used for elements that emit a
click
event - using the Tracking mixin for other custom elements
- data-attributes based tracking can be used for elements that emit a
Screenshots or screen recordings
Events captured to local snowplow micro to show events being triggered and sent:
Before | After |
---|---|
an empty void | |
an empty void | |
an empty void |
How to set up and validate locally
-
Enable: snowplow on your instance
- If you have
https
enabled locally you will need to switch back to the http config first
- If you have
- Setup: SnowPlow Micro
- Visit: Compliance Center for one of your groups (you will need to have an active license that supports the dashboard)
- Click: any tab or export button
- Visit: http://localhost:9001/micro/good (if you customized the port or host adapt this URL accordingly)
- View: the output and search for
click_export
orclick_report_tab
to find the events you triggered
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.