Updated
The five parameters
Always fill in source, medium and campaign. Term and content are optional.
- utm_source: where the click comes from, like newsletter, linkedin or google.
- utm_medium: the type of channel, like email, social, cpc or referral.
- utm_campaign: the campaign itself, like spring-launch or black-friday-2026.
- utm_term: the paid keyword, if there is one.
- utm_content: which link or ad was clicked. Use it to tell two versions apart.
Naming rules
- Use lowercase for everything. Values care about case, so Newsletter and newsletter show up as two rows.
- Use hyphens, not spaces. Spaces turn into %20 and links break more easily.
- Keep medium to a short, fixed list. Analytics tools sort traffic into channels by it. So email, social, cpc and referral work better than made-up words.
- Name the campaign once. Use that same name on every link in the campaign, on every channel.
- Write your rules down where the whole team can find them.
Examples
A link in a monthly newsletter: utm_source=newsletter, utm_medium=email, utm_campaign=october-update.
The same news posted on LinkedIn: utm_source=linkedin, utm_medium=social, utm_campaign=october-update. The campaign name matches. So both links show up together in a campaign report, and you can still split them by source.
Mistakes that corrupt your data
- Tagging links inside your own site. A UTM on a link between two of your pages starts a new visit in your stats. It also wipes out where the visitor really came from.
- Mixing names, such as facebook in one campaign and fb in the next.
- Putting personal data in a tag. Never put names, email addresses or customer IDs in a URL.
- Forgetting that UTM values are public. Anyone who sees the link can read them.
UTM links and SEO
A tagged URL shows the same page as the plain one. Give the page a canonical URL without the tags. A canonical URL tells search engines which address is the main one. Then they treat both as one page, and your rankings are not hurt.