Skip to content

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?

What are the five UTM parameters?
ParameterAnswersExamplesUse it
utm_sourceWhere is the link placed?newsletter, google, linkedin, partner-acmeAlways
utm_mediumWhat kind of channel is it?email, cpc, social, affiliate, displayAlways
utm_campaignWhich effort is it part of?2026-11-launch, black-friday, weekly-digestAlways
utm_contentWhich link or creative?header-button, footer-link, video-aWhen one message has several links or versions
utm_termWhich keyword?cookieless-analyticsPaid 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-button

Read 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 %20 or +) and no mixing of hyphens and underscores.
  • Source is a name, medium is a category. linkedin is a source. social is 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

Mediums worth standardising
MediumUse forTypical sources
emailNewsletters and automated emailsnewsletter, onboarding, receipt
cpcPaid clicks on search or socialgoogle, bing, meta, linkedin
socialUnpaid posts and profile linksx, linkedin, reddit, youtube
affiliatePartners paid per salepartner-acme
displayBanner and sponsorship placementspodcast-xyz, newsletter-sponsor
referralGuest posts, directories, launch sitesproducthunt, guest-post-acme
offlineQR codes, print, slidesconference-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:

How does the medium decide the channel?
If the visit hasChannel
A paid utm_medium such as cpc, ppc, paid, paid_social, cpm, retargeting or ads, or an ad click id such as gclid or msclkidPaid
utm_medium of email, e-mail, newsletter or mailEmail
utm_medium of affiliate, affiliates, partner or referral-programAffiliate
utm_medium of display, banner or interstitialDisplay
A referrer or utm_source that names an AI assistantAI assistants
A search engine referrerOrganic search
A social network referrerSocial
A video site referrerVideo
Any other referrer, or any other utm_sourceReferral
None of the aboveDirect

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?

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-analytics

A 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.

Guide questions. Straight answers.

What people ask after reading this.

  • In most analytics tools, yes: Email and email are reported as two different values. Writing every value in lowercase avoids the problem.

  • None are technically required, but a link without utm_source is rarely useful. In practice, set source, medium and campaign on every link, add content when one message contains several links, and use term only for paid search keywords.

  • No. A UTM tag on a link within your own site makes analytics treat the click as a new campaign visit, which overwrites the original source of the visitor. Measure internal clicks with events instead.

  • They create extra URLs for the same page. A canonical link on the page pointing to the clean URL tells search engines which version to index, and most site platforms add one by default. UTM tags belong on links you share, not on links in your own navigation or sitemap.

Not answered here? Write to hello@crispstats.com

Go further

Free tools

  • Traffic source classifier

    Paste a referrer or a tagged link and see the channel and source a visit is filed under, with the rule that decided it.

  • UTM builder

    Build UTM-tagged links one at a time or in bulk from pasted rows, with presets, checks for capitals and spaces, CSV export and a channel preview.

  • A/B test significance and sample size calculator

    Check if an A/B test result is statistically significant, with the p-value and lift, or work out the sample size a test needs before you start it.

Use cases

  • CrispStats for SaaS

    See which channels bring paying customers, where trials stall in the funnel, and how your app performs for real users, from one cookieless script.

  • CrispStats for ecommerce

    Tie orders to the campaign, page and source they came from, find where checkout loses people, and watch page speed, without cookies.

  • CrispStats for agencies

    Run every client site from one account, share read-only dashboards by link, and send weekly reports, with no cookie banner to explain.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.