MetricRaven

Tracking

What are UTM parameters? UTM meaning and examples

Also called: UTM tags, UTM codes

UTM parameters are tags you add to the end of a link, such as ?utm_source=newsletter&utm_medium=email, so analytics tools can tell which source, medium and campaign sent each visit. UTM stands for Urchin Tracking Module, after Urchin, the product that became Google Analytics.

Updated

What UTM parameters are

A UTM parameter is a name and value in a link's query string. When someone clicks the link, the browser loads the page with those tags in the address, and your analytics script reads them. The visit is then recorded as coming from that source, medium and campaign, whatever the referrer says.

UTM means Urchin Tracking Module. Urchin was the web analytics product that became Google Analytics, and the utm_ prefix stuck. Today almost every analytics tool reads the same tags, so one link works everywhere.

UTM tags matter most where nothing else tells you where a visit came from. Email apps, chat apps, PDFs and many mobile apps send no referrer, so without tags those visits land in direct traffic. Tags also split one referrer into campaigns: every Facebook visit has the same referrer, but your spring ad and your organic post can carry different tags.

The five UTM tags

TagWhat it namesExample values
utm_sourceWho sent the visit: the site, newsletter or platformgoogle, newsletter, facebook, partner-blog
utm_mediumThe type of channelcpc, email, social, affiliate
utm_campaignThe campaign, promotion or launchspring-sale, v2-launch
utm_termThe paid keyword, or an ad grouprevenue-analytics
utm_contentWhich link or creative, to tell variants aparthero-button, video-ad-a

Source, medium and campaign are the core three; Google's own guide says to always set them. Term and content are optional detail. Google Analytics also reads utm_id (a campaign ID) and utm_source_platform, and documents utm_creative_format and utm_marketing_tactic, which it doesn't report yet. Other tools mostly ignore these extra tags.

Example: a tagged link, piece by piece

https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=v2-launch&utm_content=hero-button

  • https://example.com/pricing is the page the visitor lands on.
  • ? starts the query string. If the URL already has one, join the tags with & instead.
  • utm_source=newsletter says your newsletter sent the visit.
  • utm_medium=email puts it in the email channel.
  • utm_campaign=v2-launch groups it with every other link for the launch.
  • utm_content=hero-button separates the button at the top of the email from the link in the footer.

The order of the tags doesn't matter. Values can't contain spaces or & unless they are URL-encoded, which is one more reason to stick to lowercase words joined by hyphens.

A naming convention that holds up

Tags only help if everyone writes them the same way. Google Analytics treats Facebook and facebook as two different sources, and SpringSale and spring_sale as two campaigns. A one-page convention prevents that:

  • Lowercase everything and use hyphens between words.
  • One source per platform: facebook, never also fb and Facebook.com.
  • A short, fixed list of mediums: cpc for paid search, paid-social for social ads, social for organic posts, email, affiliate, referral.
  • Campaign names that sort well: 2026-11-black-friday beats bf promo final.
  • Let ad platforms fill in IDs with their URL templates (for example Meta's {{campaign.id}}), so renaming a campaign doesn't split its history.

Keep the convention in a shared sheet next to every link you publish. A link builder that only offers allowed values is even better.

How to use UTM parameters

  1. Tag every link you control that leaves your site's domain: emails, social posts, ads, partner placements, QR codes and bios.
  2. Don't tag links between your own pages. Tags on internal links overwrite the visit's real source.
  3. In ad platforms, set tags once at account or ad level (Google Ads' Final URL suffix, Meta's URL parameters field) instead of editing each URL.
  4. Check a tagged link before you send it: open it in a private window and confirm the visit shows up with the right values.
  5. Report on medium first to compare channels, then on campaign and content to compare efforts inside a channel.

The tags only tell you where visits came from. To learn which tags bring paying customers, the payments have to be connected to those visits, which is what revenue attribution does.

Common UTM mistakes

  • Inconsistent capitals and spellings, which split one source into several rows.
  • Tagging internal links, such as a banner on your blog pointing to your pricing page. It resets the source and hides the channel that actually brought the visitor.
  • Using utm_source for the medium, like utm_source=email. You lose the ability to compare newsletters with each other.
  • Leaving out medium. Many tools group channels by medium, so a link with source and campaign but no medium lands in the wrong bucket.
  • Putting personal data in tags, such as an email address in utm_content. It ends up stored in analytics and in server logs.
  • Assuming tags survive everything. Some redirects and link shorteners drop query strings. Test the final URL.

How MetricRaven handles UTM parameters

The MetricRaven script reads all five UTM tags from the landing URL, keeps up to 200 characters of each and records them with the pageview. Under Traffic → Acquisition → Campaign each tag has its own view, and All UTM combinations shows every complete combination of the five tags, with a dash for a missing one.

  • Revenue by tag. Every UTM value gets visitors and revenue. Revenue is credited to the paying customer's first tracked visit, so a tag gets the sales of the customers it first brought in.
  • Channels from tags. utm_medium containing cpc, ppc, paid, display or cpm puts a visit in Paid; email or newsletter in Email; affiliate, partner or partnership in Affiliate; social in Social. A known source such as utm_source=chatgpt or utm_source=facebook counts too. Matching ignores letter case. A visit with a utm_source but no referrer and no channel match is Campaign; tags without a utm_source count as Direct.
  • Same place, one source. utm_source=google and google.com, or utm_source=fb and facebook.com, are shown as one source in reports.
  • Referral tags. Links with ?ref=, ?via= or ?source= are recorded separately from UTM tags, and a via tag puts the visit in Affiliate.
  • Ad campaigns. With Meta Ads or Google Ads connected, MetricRaven matches utm_campaign, utm_term and utm_content to campaign, ad group and ad IDs or names, and shows spend and ROAS next to them.

See Campaign & referral links for the full channel rules, and Meta Ads and Google Ads for the URL parameters to paste into each platform.

Questions

What does UTM stand for?
UTM stands for Urchin Tracking Module. Urchin was the analytics product that became Google Analytics, and its utm_ link tags became the standard most analytics tools read.
Which UTM parameters are required?
None are technically required, but always set utm_source, utm_medium and utm_campaign. Add utm_term for paid keywords and utm_content to tell two links or creatives in the same campaign apart.
Do UTM parameters affect SEO?
Tagged links to your own site from other places don't hurt rankings, but don't use them on internal links or in your sitemap. Point your canonical URL at the untagged page so search engines index one version.
Are UTM parameters case-sensitive?
In Google Analytics, yes: utm_source=Facebook and utm_source=facebook are different sources. Many tools behave the same, so write every value in lowercase.
Can UTM parameters track revenue?
Not by themselves. They label the visit. To see revenue per tag, your analytics has to link each payment to the visit that brought the customer, as MetricRaven does with Stripe and other payment providers.
Full glossary

See the revenue behind every UTM tag

MetricRaven records all five UTM tags on every visit and credits each payment to the visit that brought the customer, so you can sort campaigns by revenue instead of clicks.

14-day free trial, no card required.