Home › Guides › UTM Parameters: The Complete Guide

UTM Parameters: The Complete Guide

Five parameters, three that matter, and one naming mistake that splits every campaign in your reports.

What UTM parameters are

UTM parameters are five query parameters — utm_source, utm_medium, utm_campaign, utm_term and utm_content — that analytics platforms read to attribute a visit. The page itself is unchanged: everything after the question mark is tracking information, and the visitor sees the same page whether the parameters are there or not.

They exist because referrer data is unreliable. Email clients strip it, apps do not send it, and social platforms mangle it. A tagged link carries its own attribution, so the visit is credited correctly even when the referrer is empty.

The three that matter

utm_source identifies where the traffic came from: a specific newsletter, a specific site, a specific ad platform. utm_medium identifies the channel type: email, social, cpc, referral. utm_campaign identifies the promotion: spring-launch, october-sale, onboarding-series.

These three are the minimum every analytics platform needs. utm_term is for paid keywords, and utm_content distinguishes variants of the same link — two buttons, two placements, two subject lines — when you want to know which one did the work.

Naming conventions that survive a year

Lowercase, always. Analytics platforms treat values as case-sensitive strings, so 'Email', 'email' and 'e-mail' are three separate mediums in your reports, and there is no reliable way to merge historical data after the fact. Pick lowercase once and never vary it.

Hyphens, not spaces. Spaces have to be percent-encoded, which makes the URL unreadable and the values hard to type in a filter. Underscores work too — the rule is one separator, used everywhere.

Include the year in campaign names. 'october-launch' recurs every year; 'october-launch-2026' does not. And keep one shared list of names for the whole team, because the naming mistake that splits campaigns is usually two people inventing two names for the same promotion.

Where UTMs belong — and where they do not

Tag links that point at your site from somewhere else: email newsletters, social posts, paid ads, partner sites, QR codes, PDFs. Anywhere the referrer is unreliable or absent, a tagged link is the only attribution you will get.

Never tag internal links. A tagged link starts a new session in most analytics configurations, so a visitor who arrived from your newsletter and then clicks a tagged link inside your site is re-attributed to your own campaign instead of the newsletter that actually brought them. Internal navigation stays untagged, always.

And do not share tagged URLs where people will see and copy them — a link in a public post with five parameters looks like tracking, because it is. Use a shortener for anything public-facing, and keep the tagged URL behind it.

A worked example: one campaign, four channels

A spring launch runs on four channels. The newsletter link is utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch-2026. The post on X is utm_source=x&utm_medium=social&utm_campaign=spring-launch-2026. The Google ad adds utm_term=running-shoes to its cpc medium. The partner blog gets utm_source=partner-blog&utm_medium=referral.

In the report, the campaign is one row — spring-launch-2026 — and the four channels are four rows beneath it. Without the parameters, the newsletter visits would show as direct traffic, the social visits as an unlabelled referrer, and the partner visits as a bare domain. The parameters do not create the traffic; they stop it from arriving anonymous.

The mistakes that split your data

Mixed case is the expensive one, because it is unfixable after the fact. Spaces are the annoying one, because they make every value harder to read and filter. Inconsistent medium names — 'social' on one link, 'social-media' on another — split one channel into two rows that will never be merged.

Forgetting utm_campaign is the quiet one: the visit is attributed to a source and a medium but to no promotion, so it cannot be separated from every other visit from that source. And tagging the same link with different values in different places — the email version says 'newsletter', the forwarded version says 'email' — creates two sources for one list.

All five are naming mistakes, not technical ones. The fix is a builder with live validation and a shared list of names, used before the link goes out rather than after the report comes back.

Checking your links before they go out

Build the link in the UTM Link Builder: it warns about missing parameters, mixed case, spaces, and medium values that do not match the usual set. Then click one link yourself and check the real-time report — the visit should appear under the source, medium and campaign you intended, within a minute.

Do this once per campaign, not once per link. The parameters are the same across every link in a campaign; what varies is utm_content, and a typo there costs you one variant, not the whole report.

About the author

Hongtao Ren (任宏涛) — Developer based in Xi'an, China. Builds browser-based tools and JetBrains IDE plugins. He built and maintains SerpPrism.

Corrections are the most useful thing you can send. If a tool or guide here gives you a wrong answer, that is a bug, not a judgement call — use the contact page.

Questions

Do UTM parameters affect SEO?

No — Google treats a tagged URL as the same page. The risk is a tagged URL getting indexed or shared as canonical: keep canonical tags clean and do not link to tagged URLs from your own site.

Should I use UTMs on links inside my own site?

No. A tagged internal link starts a new session and overwrites the source that actually brought the visitor. Internal navigation stays untagged.

What is the difference between utm_source and utm_medium?

Source is the specific origin — 'spring-newsletter' or 'google'. Medium is the channel type — 'email' or 'cpc'. One medium contains many sources.

Related tools