question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When linking to LH docs, include utm parameters for analytics

See original GitHub issue

Right 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:

https://developers.google.com/web/tools/lighthouse/audits/has-viewport-meta-tag?utm_source=lighthouse&utm_medium=extension&utm_content=failure

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).

cc @paulirish @patrickhulce @kaycebasques

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kdzwinelcommented, Mar 29, 2018

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).

1reaction
rviscomicommented, Mar 26, 2018

^ small correction: utm_source should always be lighthouse, but we should customize the utm_medium param to match the environment

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found