Added snowplow tracking for package assets
What does this MR do and why?
Adds snowplow click tracking for 3 actions on the package detail page:
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" | ![]() |
6. Open developer tools (option , command , i on mac) |
|
7. Press the arrow on the top of developer tools and select snowplow | ![]() |
8. Click on any of the areas that this MR has added tracking: | ![]() |
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 | ![]() |
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.
Related to #348227