UTM parameters explained: how to track where your visitors come from
What utm_source, utm_medium and utm_campaign mean, how to name them consistently, and the mistakes that split your reports.
When someone arrives on your site from a newsletter, an ad or a social post, analytics often can't tell which one sent them. UTM parameters fix that. They're tags added to the end of a link, and tools such as Google Analytics read them to record exactly where each visit came from.
What a tagged link looks like
https://example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026
Everything after the ? is ignored by the page itself and picked up by your analytics.
The parameters
| Parameter | Answers | Examples |
|---|---|---|
utm_source |
Who sent the visitor? | google, facebook, newsletter, partner_site |
utm_medium |
What kind of channel? | cpc, email, social, referral, qr |
utm_campaign |
Which campaign? | spring_sale_2026, launch |
utm_term |
Which keyword, for paid search? | logo+design |
utm_content |
Which link or version? | header_button, footer_link, version_b |
Use source, medium and campaign every time. Term and content are optional; content is useful for telling apart two links in the same email, or two versions of an ad.
Name them consistently
UTM values are case-sensitive. Facebook, facebook and fb show up as three different sources, splitting one channel's results into pieces. A few rules prevent most of the mess:
- Use lowercase only.
- Use underscores or hyphens instead of spaces, and pick one.
- Keep a shared list of the sources and mediums your team uses, and stick to it.
- Use the standard medium names your analytics tool expects, such as
email,cpc,socialandreferral, so visits land in the right channel.
Mistakes to avoid
Tagging internal links. Never add UTM tags to links from one page of your site to another. Each click starts what looks like a new visit from a new source, and the visitor's real origin is lost.
Letting tagged links get indexed. UTM links belong in campaigns, not in your site's navigation or sitemap. In case tagged URLs are shared and indexed anyway, give your pages a canonical tag that points to the clean URL.
Forgetting QR codes and print. A QR code on a flyer is the perfect place for a tagged link, such as utm_source=flyer&utm_medium=qr, since there's otherwise no way to tell those visits apart.
Long, ugly links. Tagged links are long. That's fine behind a button or in an email, but for print and social media bios, use a short redirect on your own domain that leads to the tagged URL.
A naming plan you can copy
Agree on a short set of values before the first campaign, and add to it rather than inventing new ones each time:
| Channel | utm_source |
utm_medium |
|---|---|---|
| Email newsletter | newsletter |
email |
| Facebook post | facebook |
social |
| Instagram ad | instagram |
paid_social |
| Google Ads | google |
cpc |
| LinkedIn post | linkedin |
social |
| Partner or guest article | the partner's name | referral |
| Printed flyer or poster | flyer or poster |
qr |
For campaign names, a pattern such as topic_month_year (spring_sale_04_2026) sorts well and shows when each campaign ran. Keep the plan in a shared sheet, so everyone who tags links uses the same words. If you run Google Ads, its auto-tagging adds its own parameter (gclid) and usually makes manual tags unnecessary there.
Reading the results
In Google Analytics 4, tagged visits appear under Reports, then Acquisition, then Traffic acquisition. Switch the table between session source, medium and campaign to compare channels. Give a new campaign a day or two before judging it, since reports aren't always up to the minute.
Build links without typos
The UTM link generator builds a correctly encoded link from a simple form, so a stray space or symbol can't break it. To check an existing link, paste it into the URL parser, which lists each parameter and its value.
Try it
More posts
What a DNS lookup tells you about a domain
A, MX, TXT, CNAME and the other DNS records explained: what each one does, and what to check when a website or email stops working.
Read post →
How to check an SSL certificate, and what the details mean
Issuer, validity, covered names and the chain: how to read a certificate, and the errors that make browsers show a warning.
Read post →
PNG, JPG, WebP or GIF: choosing the right image format for the web
Which format to use for photos, logos, screenshots and animations, and how much lighter WebP can make your pages.
Read post →