Skip to content

Added snowplow tracking for package assets

Katie Macoy requested to merge 348227-package-frontend-tracking into master

What does this MR do and why?

Adds snowplow click tracking for 3 actions on the package detail page: Screen_Shot_2022-06-20_at_14.44.33

We are trying to get full coverage for where the users are clicking in package so we can get a better sense with data how customers are using our product.

Screenshots or screen recordings

https://www.loom.com/share/59e31b9e66f24c5c8cf04db6e9af9815

How to set up and validate locally

Step Image
1. Put a package in the package registry (instructions on how to create a dummy package)
2. Enable snowplow micro on GDK (instructions for the gdk, documentation on snowplow micro)
3. Install the snowplow inspector on google chrome as a chrome extension
4. Open gdk, navigate from side menu Packages & Registries > Package Registry
5. Click on a package in the registry and scroll to the bottom of the page where it says "Files" Screen_Shot_2022-06-20_at_14.52.23
6. Open developer tools (option, command, i on mac)
7. Press the arrow on the top of developer tools and select snowplow Screen_Shot_2022-06-20_at_14.54.46
8. Click on any of the areas that this MR has added tracking: Screen_Shot_2022-06-20_at_14.44.33
9. When clicking on those items, you'll see a new snowplow event, called a structured event appear. Click on the structured event to see what the event was recorded as Screen_Shot_2022-06-20_at_14.57.04

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 #348227

Merge request reports