When linking to LH docs, include utm parameters for analytics
See original GitHub issueRight now when we link to the LH docs we don’t include any tracking information. For example:
https://developers.google.com/web/tools/lighthouse/audits/has-viewport-meta-tag
We could include utm parameters to better understand how visitors arrived at the docs and why. For example:
Ideally we’d use utm_medium
to differentiate the Chrome extension from the Audits panel in Dev Tools. Not sure if the code is self-aware enough to make this distinction.
Other params: utm_source
always lighthouse
to indicate that we sent users there from this tool, and utm_content
to identify why users were sent to the docs (the audit failed, passed, maybe specific details about the failure reason).
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Understanding UTM parameters and Google Analytics
The UTM parameters that have been set, will then appear in Google Analytics as the links direct traffic to the particular website.
Read more >Complete Guide to Google Analytics UTM tagging
“UTM” means “Urchin tracking module.” UTM tags can be added to the end of regular URL's, in order to give Google Analytics specific...
Read more >Collect campaign data with custom URLs - Analytics Help
When you add parameters to a URL, you should always use utm_source , utm_medium , and utm_campaign . utm_term and utm_content are optional....
Read more >utm_source, utm_medium, utm_campaign Parameters
UTM parameters (also known as campaign parameters, campaign variables, tags, variables or utm codes) are the parameters recognized by Google for ...
Read more >UTM Tagging: It's Important!
UTM parameters, when implemented correctly, allow you to pull clear insights into how your marketing efforts are impacting traffic, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As discussed on the eng meeting - we are going to include environment info in the build time (instead of detecting it in the runtime as I originally proposed).
^ small correction:
utm_source
should always belighthouse
, but we should customize theutm_medium
param to match the environment