Traffic
UTM parameters: a practical guide with naming conventions
What the five UTM parameters do, a naming convention you can copy, the mistakes that split your reports, and how the medium decides the channel.
The CrispStats team · · Updated · 7 min read
In short
UTM parameters are tags you add to the end of a link so your analytics knows which campaign a visit came from. Use three on every link you publish yourself: utm_source (where), utm_medium (what kind of channel) and utm_campaign (why). Write them in lowercase with hyphens, keep a short list of allowed values, and never put them on links inside your own site.
A browser tells your site very little about where a visitor came from: at best the address of the previous page, and often nothing. A link in an email client, a chat app or a PDF arrives with no referrer at all, and your analytics files it as direct traffic.
UTM parameters fix that for the links you control. They are plain query parameters. They do nothing to the page; they only label the visit.
What are the five UTM parameters?
| Parameter | Answers | Examples | Use it |
|---|---|---|---|
utm_source | Where is the link placed? | newsletter, google, linkedin, partner-acme | Always |
utm_medium | What kind of channel is it? | email, cpc, social, affiliate, display | Always |
utm_campaign | Which effort is it part of? | 2026-11-launch, black-friday, weekly-digest | Always |
utm_content | Which link or creative? | header-button, footer-link, video-a | When one message has several links or versions |
utm_term | Which keyword? | cookieless-analytics | Paid search only |
A tagged link looks like this:
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=2026-11-launch&utm_content=header-buttonRead it as a sentence: this visit came from the newsletter, which is an email channel, as part of the November launch, through the button in the header.
A naming convention you can copy
The parameters are free text, which is the problem. Most analytics tools treat values as case-sensitive, so Email, email and e-mail become three rows that each look small. A convention is just a short list of rules everyone follows.
- Lowercase only. No exceptions, so nobody has to remember them.
- Hyphens between words. No spaces (they turn into
%20or+) and no mixing of hyphens and underscores. - Source is a name, medium is a category.
linkedinis a source.socialis a medium. If you are unsure which is which, the medium is the one with only a handful of possible values. - A closed list of mediums. Pick them once and do not invent new ones per campaign.
- Campaign names that sort. Start with a date or a quarter if campaigns repeat:
2026-11-launch,2026-q4-webinar. - Nothing personal. Never put an email address, a name or a customer id in a UTM value. It ends up in URLs, logs and reports.
Mediums worth standardising
| Medium | Use for | Typical sources |
|---|---|---|
email | Newsletters and automated emails | newsletter, onboarding, receipt |
cpc | Paid clicks on search or social | google, bing, meta, linkedin |
social | Unpaid posts and profile links | x, linkedin, reddit, youtube |
affiliate | Partners paid per sale | partner-acme |
display | Banner and sponsorship placements | podcast-xyz, newsletter-sponsor |
referral | Guest posts, directories, launch sites | producthunt, guest-post-acme |
offline | QR codes, print, slides | conference-badge, flyer |
Seven mediums cover most teams; if you need an eighth, add it to the table before you use it, not after. The UTM builder has presets for the common ones, shows how the finished link will be classified, and has a bulk mode that tags a whole list of addresses at once.
How does the medium decide the channel?
Analytics tools group visits into a small set of channels: paid, email, social, organic search and so on. For tagged links, utm_medium is usually what picks the channel, and each tool has its own list of values it recognises. A medium outside that list falls back to something generic.
In CrispStats the rules are checked in this order:
| If the visit has | Channel |
|---|---|
A paid utm_medium such as cpc, ppc, paid, paid_social, cpm, retargeting or ads, or an ad click id such as gclid or msclkid | Paid |
utm_medium of email, e-mail, newsletter or mail | |
utm_medium of affiliate, affiliates, partner or referral-program | Affiliate |
utm_medium of display, banner or interstitial | Display |
A referrer or utm_source that names an AI assistant | AI assistants |
| A search engine referrer | Organic search |
| A social network referrer | Social |
| A video site referrer | Video |
Any other referrer, or any other utm_source | Referral |
| None of the above | Direct |
Two things follow from that order. A paid tag always wins, so an ad on a social network is counted as Paid, not Social (GA4 splits the two into paid social and organic social). And utm_medium=social is not on any list: an unpaid social post is recognised as social by its referrer, and if the click arrives without one (many mobile apps strip it) the visit is filed as a referral under the source name you gave. Your tag still tells you exactly which post it was.
You can test any combination before you publish it with the traffic source classifier.
What are the most common UTM mistakes?
Tagging links inside your own site
This is the expensive one. A UTM tag on an internal banner or menu link tells your analytics that a new campaign visit has started. The visitor who arrived from Google is relabelled as coming from homepage-banner, and the sale is credited to your own banner instead of the search that found you. Use UTMs only on links that point to your site from somewhere else. To measure an internal button, send a custom event.
Swapping source and medium
utm_source=email&utm_medium=newsletter reads fine to a human and wrong to a report. Source is the specific place, medium is the category.
Putting the tags after a fragment
Query parameters must come before any #. In example.com/docs#install?utm_source=x the tag is part of the fragment and is never sent to the server. The correct form is example.com/docs?utm_source=x#install.
Forgetting that tags travel
When a reader copies your newsletter link and posts it in a forum, every click from the forum still says utm_medium=email. You cannot prevent this. Just remember it when a campaign keeps getting visits weeks after it ended.
Tagging what does not need it
Organic search and most website-to-website links already carry a referrer. Tagging them adds nothing. Spend the effort on email, ads, apps, QR codes and social profiles, where the referrer is missing or too vague.
A worked example
Say you announce a feature in three places. Three links, one campaign name:
# Newsletter buttonhttps://example.com/blog/funnels?utm_source=newsletter&utm_medium=email&utm_campaign=2026-11-funnels&utm_content=main-button# LinkedIn posthttps://example.com/blog/funnels?utm_source=linkedin&utm_medium=social&utm_campaign=2026-11-funnels# Search adhttps://example.com/funnels?utm_source=google&utm_medium=cpc&utm_campaign=2026-11-funnels&utm_term=funnel-analyticsA week later, filtering on the campaign 2026-11-funnels shows the whole launch. Splitting by source shows that, for instance, the newsletter sent 400 visitors and 12 signups while the ad sent 900 visitors and 9. That is a 3% conversion rate against 1%, which is the comparison you tagged the links to get.
How CrispStats uses UTM parameters
CrispStats reads UTM tags from the landing URL of each visit, and source and medium choose the channel by the rules in the table above. The worked example is one click away: filter the dashboard to the campaign, then split it by source or by utm_content to compare the newsletter button with the ad, with visitors, conversions and conversion rate on each row.
A visit that arrives through a different campaign starts a new session, which is exactly what goes wrong when an internal banner is tagged: your own banner becomes the session’s source. Payments are a separate matter: with revenue attribution connected, money goes to the first source known for the visitor, so a later tagged click does not take the credit. Campaign reports are on every plan and in the trial, and the counting rules are in the metrics docs.