UTM campaign parameters
Tags in the link URL that tell the site which campaign, medium and source sent the person.
In one line
Can see which ad, email, or post sent you, from tags in the link
Tags in the link URL that tell the site which campaign, medium and source sent the person.
Lets a site tie a visit to a specific ad, email or post. Five standard keys: utm_source, utm_medium, utm_campaign, utm_term, utm_content. Stored in first-party cookies by analytics tools for the session or longer.
What it can and can't do
What the user does: You tap a link that carries campaign tags, such as an ad or email link
It can
- See the source, medium, and campaign named in the link
- Tie your visit to one specific ad, email, or post
- Keep that tag in its own cookie for the visit or longer
- Count how many people came from each campaign
It cannot
- See the tags if the link was copied without them
- Learn who you are from the tags alone
- Follow you to other sites with these tags
- Learn what you did before you clicked
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | Plain URL parameters; any browser |
| Edge | Supported | 1 | Not listed | Plain URL parameters; any browser |
| Firefox | Supported | 1 | 2004-11-09 | Plain URL parameters; any browser |
| Safari | Supported | 1 | 2003-06-23 | Plain URL parameters; any browser |
| Safari on iPhone | Supported | 1 | 2007-06-29 | Plain URL parameters; any browser |
| Chrome on Android | Supported | 1 | Not listed | Plain URL parameters; any browser |
| Samsung Internet | Supported | 1 | 2013-04-27 | Plain URL parameters; any browser |
How a site asks for it
| API | location.search / URLSearchParams; server access logs |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | GA4 campaign data is session scoped by default; first-touch copies often kept in cookies for 30 to 90 days |
| How to take it back | Clear site data, browser privacy settings |
| Inside an iframe | Not listed |
Data you get
What comes back: Up to 5 key/value text parameters
Shape: object
How often: per landing URL
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
utm_source | string | text | any | n/a |
utm_medium | string | text | any | n/a |
Technical limits
- Only as accurate as the link author made them
- Not stripped by Chrome; Safari and Firefox strip some tracker IDs but leave UTM keys intact
- Cannot identify the person alone
The story
What it is
Little tags added to a link that tell a site which ad, email or post sent you.
For you
You see them as a long tail on a web address, like utm_source=newsletter. Nothing pops up and the page looks the same. The site just learns which link brought you.
For makers
Marketing teams need to know which email, ad or post paid off. The tags are free, work on any site and need no consent banner on their own. They feed dashboards that decide where the next ad budget goes.
Where you see it
| Type | Example | Apps |
|---|---|---|
| ads | A shoe brand tags each ad so its dashboard shows that the Instagram story brought more buyers than the Google search ad. | Google Analytics |
| media | A newsletter tags each link so the editor sees which headline readers clicked from the Tuesday email. | Substack |
| games | A browser game studio tags links on Discord, YouTube and Reddit to learn which place brings players who stay past day one. | None named |
| social | A creator adds tags to the link in a bio so a brand can see exactly how many followers visited. | None named |
| shopping | A Black Friday email carries a campaign tag, so the shop ties each order to that email. | Shopify |
| security | A fraud team spots a campaign tag that suddenly brings thousands of fake sign-ups and cuts that source off. | None named |
| analytics | A product team joins the tags with sign-up data to learn which channel brings paying customers. | Mixpanel, Amplitude |
Risks
- Links reveal where you came from
- Tags can be shared when you copy the link
What the platform says
- Google: Campaign URL builder. Google Analytics shows how to add source, medium and campaign tags to links so you can see what drives visits.
Good uses and abuse
Legitimate uses
- Campaign ROI
- A/B channel analysis
Known abuse
- Appending personal data (email, IDs) to links shared widely
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 0 | Rough identifying entropy, when known |
History
- 2022-06, Firefox 102: Query Parameter Stripping added for known tracking parameters; UTM keys are not on the strip list
Related capabilities
Related
- Ad click IDs (gclid, fbclid, msclkid and more). Can tag your ad click so a later purchase links back to that exact ad
Sources
How well checked: Based on official documentation.