SEO Guide

UTM Parameters, A Clean Naming Convention and Reusable Template

By Muhammad Waseem Updated 900 words

UTM parameters are tags you append to a URL, utm_source, utm_medium, utm_campaign, utm_term, utm_content, so your analytics can attribute a visit to the exact campaign and placement that earned it. They do not affect rankings. In fact you generally want canonicals to collapse the UTM-duplicated URLs back to the clean page. Their entire value is measurement.

That value lives or dies on consistency. A shared naming convention turns messy logs into readable reports months later. A free-for-all gives you "Email", "email" and "NEWSLETTER" counted as three channels. This guide gives a defensible convention, a copy-paste template, and the traps to avoid, built around our UTM builder.

What each of the five parameters captures

They answer five different questions, and getting them straight is half the discipline. utm_source is the specific platform or publisher, google, newsletter, facebook. utm_medium is the channel type, email, cpc, social, referral. utm_campaign names the initiative, spring_sale_2026. utm_term is for the paid keyword, and utm_content distinguishes two variants of the same link, such as an A/B test or a top versus footer banner.

A common confusion is source vs medium. Source is where, the site. Medium is how, the channel kind. "facebook" is a source. "social" or "cpc" is the medium. Keep those roles separate and reports stay unambiguous.

ParameterCapturesGood exampleAvoid
utm_sourceThe specific site or platformgoogle, mailchimp, partnerblogvague values like "web"
utm_mediumThe channel typeemail, cpc, social, referralmixing source into medium
utm_campaignThe initiative namespring_sale_2026spaces and capitals
utm_termPaid keyword, usuallyrunning+shoesunneeded on organic links
utm_contentWhich link variantbanner_top vs textlinkleaving it out when A/B testing

Only source, medium and campaign are truly required in practice. Add term and content when you have paid keywords or link variants to tell apart. The more fields you standardise, the less you have to decide per link later.

The rules of a convention that survives

Write every value in lowercase, analytics is often case-sensitive, so "Email" and "email" become different buckets. Use hyphens or underscores, never spaces, so you are not fighting percent-encoding. Keep values as stable tokens reused across the team, and go from broad to specific so a report can roll up. Never put personal data or secrets in a UTM: it is appended to a public, shared URL.

Decide your medium vocabulary once, a short fixed list like email, cpc, organic-social, paid-social, referral, affiliate, and forbid inventing new ones ad hoc. Free-form mediums are the single biggest source of fragmented reports.

A reusable template by channel

A practical pattern is to fix source and medium per channel and only vary the campaign and content. For email, source is the sending platform or "newsletter", medium is email, campaign names the send. For paid search, source is the ad network, medium is cpc, term carries the keyword. For organic social, source is the network, medium is social.

Build each link with the UTM builder. You enter the base URL and the fields, and it assembles the query string in the right order. Slugify your campaign names with the slug generator if you want clean lowercase-hyphen values, and let the builder percent-encode anything special, where a space becomes + or %20, and the URL encoder handles the odd value.

The traps that silently wreck attribution

Three mistakes dominate. First, putting UTMs on internal links. This re-stamps the session's source in the next pageview and scrambles your channel data, UTMs are for external traffic only. Second, inconsistent casing and spacing, which splays one channel across several rows. Third, forgetting that UTM URLs are duplicate pages, so without a proper canonical you risk diluting signals and cluttering sitemaps.

Govern it centrally. Keep the taxonomy in one shared document, reuse tokens, and audit new campaign names before launch. A convention nobody documents stops being a convention within a quarter.

Frequently Asked Questions

Do UTM parameters affect SEO rankings?

No, they are analytics tags, not a ranking input. The indirect SEO concern is duplication. A UTM URL is the same page with extra query strings, so make sure the clean page is the canonical to avoid split signals. Rankings themselves do not change.

Which UTM fields are required?

In practice, utm_source, utm_medium and utm_campaign are the essential trio. utm_term is for paid keywords and utm_content distinguishes link variants, so add them when you actually have keywords to track or A/B links to tell apart.

Why lowercase my UTMs?

Because many analytics setups are case-sensitive, so Email, email and EMAIL get reported as different values and fragment your data. Locking everything to lowercase plus hyphens keeps one channel in one bucket you can actually read.

Can I put UTMs on links inside my own site?

You should not. Internal UTMs overwrite the session's original source on the next click and make attribution wrong. Reserve UTM parameters for links you do not control, emails, ads, social and partner pages.

What is utm_content for?

It distinguishes two links that share the same source, medium and campaign, for example a banner versus a text link in one newsletter, or an A/B test. Without it, both clicks land in the same analytics row and you cannot compare them.

Should spaces be encoded?

Yes, a URL cannot contain literal spaces, so they become and or %20. Rather than hand-manage that, build the link in the <a href="/tool/utm-builder/">UTM builder</a> so it assembles and encodes the string correctly, or use the <a href="/tool/url-encoder-decoder/">URL encoder</a> for a one-off value.

Related guides

Browse all 57 guides

Recognised & listed on