Add UTM params to VSCE links
Created by: philipp-spiess
Fixes #30859 (closed)
We want to improve our funnel tracking to better understand when users started their flow in VS Code (see #30859 (closed) for more context).
-
Sidebar CTAs -
Banner CTAs -
CTAs from Save Search, and Create Monitor buttons -
Create VSCE campaign events on sourcegraph.com
Test plan
- To validate that this logs the right parmeters I changed the hostname to my local instance:
https://sourcegraph.test:3443/sign-up?editor=vscode&utm_medium=VSCIDE&utm_source=sidebar&utm_campaign=vsce-sign-up&utm_content=sign-up
and verified that the events show up in the console: - With the help of @abeatrix and @tjkandala I was able to build the extension locally and verify that all buttons indeed contain the UTM parameters in the links they open.
Note: This is a new version of a previous PR (https://github.com/sourcegraph/sourcegraph/pull/30890) since we have not merged all of the VSCE code into main yet. Merging this into main will have a merge conflict in client/web/src/tracking/eventLogger.ts