All terms

UTM Parameters: What They Are and How to Use Them Right

UTM parameters tag your URLs so analytics tools can identify which campaigns, sources, and mediums drive traffic. Learn the five parameters, naming conventions, and how to avoid the most common mistakes.

Jay Ma
7 min read
UTM parameters explained: how to tag URLs for campaign tracking
On this page

UTM parameters are query string tags appended to a URL that tell your analytics tool where a session originated. Without them, Google Analytics 4 and most other analytics platforms attribute traffic to whatever referrer is present in the HTTP request -- which is often wrong, missing, or stripped by redirects. UTM parameters solve this by encoding attribution information directly into the URL itself.

The term comes from Urchin Tracking Module, named after Urchin Software, the analytics company Google acquired in 2005 to build what became Google Analytics. The format has been the industry standard ever since.

The five UTM parameters and what each one does

Three parameters are required. Two are optional.

utm_source identifies the specific platform or publisher that sent the traffic. Examples: google, facebook, july-newsletter, partner-site. The source answers "which platform."

utm_medium identifies the marketing channel type. Examples: cpc, email, social, affiliate, display. The medium answers "what kind of marketing."

utm_campaign identifies the specific campaign. Examples: q3-acquisition-us, retargeting-lapsed-7d, brand-awareness-q4. Campaign names should be consistent and machine-readable, not human-readable titles with spaces and capital letters.

utm_term identifies the paid keyword for search campaigns. It is optional and mainly used in Google Search Ads to pass the keyword that triggered the ad into your analytics tool. In practice, Google Ads can pass this automatically via ValueTrack parameters.

utm_content differentiates ads within the same campaign. Useful when running A/B tests on ad copy or creative. Example: headline-a vs headline-b, or carousel vs single-image.

In Google Analytics 4, these parameters map to session-scoped dimensions: session_source, session_medium, session_campaign, session_content, and session_term. GA4 also introduced three additional parameters not available in Universal Analytics: utm_source_platform (which identifies the buying platform, such as Search Ads 360 or Display & Video 360), utm_creative_format (such as display or video), and utm_marketing_tactic (such as retargeting or prospecting). These are optional but useful for large-scale cross-channel reporting where the basic five parameters lack the granularity needed.

Three naming conventions that prevent fragmented reports

The single biggest UTM problem in production is inconsistent naming. When one team tags Facebook traffic as facebook, another tags it as Facebook, and a third uses fb, GA4 treats these as three different sources. Your paid social channel appears to have one-third of the traffic it actually does.

In practice, teams need three rules enforced before any campaign goes live.

Always lowercase. UTM parameters are case-sensitive in most analytics platforms. Facebook and facebook are different values. Lowercase everything: source, medium, campaign, and content values.

Replace spaces with hyphens. A space in a UTM parameter becomes %20 in the URL, which browsers and some analytics tools parse inconsistently. q3-acquisition-us is cleaner and more reliable than Q3 Acquisition US. Underscores are acceptable but hyphens are the more common convention.

Use a shared parameter taxonomy. Agree on the canonical list of medium values (cpc, email, social, display, affiliate) before the first campaign launches. Document these in a shared spreadsheet or naming guide. If someone invents paid-social six months into the year, you have a fragmented attribution model that can't be cleaned retroactively.

What this looks like in production: every team member who builds campaign URLs uses the same URL builder tool, with dropdown menus for source and medium rather than free-text fields. Google's Campaign URL Builder is free and prevents most naming errors. For teams running dozens of campaigns at once, a custom internal tool with enforced dropdowns is worth the build time.

Why UTM parameters get stripped before the click registers

A tagged URL that reaches your analytics platform intact tells you exactly where the session came from. The problem is that UTM parameters don't always survive the journey from ad to landing page.

iOS Mail Privacy Protection pre-fetches URLs when an email arrives, before the recipient opens it. This pre-fetch often strips query parameters. The result: email campaigns show significantly fewer sessions than actual clicks in iOS Mail. Apple introduced this with iOS 15 in 2021 and expanded it in subsequent releases.

Link shorteners that don't preserve query strings discard everything after the path. Some older shorteners and poorly configured custom short-link services drop UTM parameters entirely. Always test a shortened UTM link before launching a campaign by clicking it yourself and checking what appears in your analytics real-time view.

Server-side redirects configured without [QSA] (Query String Append) in Apache or the equivalent pass-through setting in Nginx strip UTM parameters at the redirect step. This is common when a campaign URL redirects to a localized version of a page, or when a marketing team uses a vanity domain that redirects to the main domain.

AMP pages implement special link handling that can interfere with UTM parameter passing. If your landing pages use AMP, test the full UTM flow from ad click to GA4 report before launching.

In a live campaign, the fastest diagnostic is to open GA4's real-time view within five minutes of launching a tagged campaign. If sessions show up under direct / (none) instead of your campaign source, you have a broken conversion tracking issue somewhere in the redirect chain. Work backward through each redirect step to find where the parameters disappear.

How UTM data connects to attribution

UTM parameters are the input layer for most attribution models. When an analyst builds a multi-touch attribution model or a marketing mix model, they need clean, consistent campaign labels to assign credit to the right channels. Fragmented UTM data -- fb, Facebook, facebook-ads all referring to the same channel -- means the model can't aggregate touchpoints correctly.

Last-click attribution is the default for most analytics tools. It gives 100% credit to the final UTM-tagged session before a conversion. This means the accuracy of last-click reporting depends entirely on how complete your UTM coverage is. Any traffic that arrives without UTM tags (organic, direct, or through parameter-stripping redirects) won't appear in campaign-level reports.

For teams running paid media across multiple channels, X-Ray ingests UTM parameter data alongside signals from mobile measurement partners and first-party behavioral data. UTM-tagged sessions are joined to the full user journey across multiple sessions and devices. When a user converts after multiple visits, X-Ray traces the UTM-tagged campaign that first brought them in, not just the session that contained the conversion.

UTM parameters and SEO

UTM parameters do not affect organic search rankings. Google's crawlers strip query parameters during indexing by design, and they don't factor into PageRank calculations.

There is a related risk, however. If UTM-tagged URLs get indexed -- because someone shared a tagged link publicly and Googlebot followed it -- you end up with duplicate content where the same page is indexed at two different URLs. The canonical URL (without UTM parameters) and the UTM-tagged URL both appear as separate pages in Google's index.

The standard fix is a canonical tag on any page that receives UTM-tagged traffic, pointing to the clean URL without parameters. Most modern CMSs add canonical tags automatically. If yours doesn't, or if you're running UTM parameters on pages without canonical coverage, audit for indexed UTM URLs using Google Search Console's URL inspection tool and the site:yourdomain.com utm_ search operator in Google Search.

Building a UTM auditing practice

Set a monthly check-in to open GA4's Traffic Acquisition report and review the Source / Medium breakdown. Any (not set) rows mean sessions arrived without UTM tags. Any suspicious source name variations (slight misspellings or capitalization differences for the same platform) mean naming inconsistency slipped through. Any campaign names that don't match your current taxonomy mean someone built a URL manually without the shared template.

For Appsflyer and Adjust users running mobile campaigns, UTM parameters feed into MMP attribution as additional metadata. The MMP's click and install data is the authoritative source for mobile conversion counting, but UTM tags on the campaign URLs help with cohort analysis and CRM segmentation downstream.

The Hellyeah platform, powered by AIMA, surfaces UTM coverage gaps automatically within X-Ray -- showing which campaigns are generating sessions with missing or malformed UTM tags before those errors compound into weeks of bad attribution data.

Frequently asked questions

  • What are the five UTM parameters?

    The five UTM parameters are utm_source (which platform sent the traffic, e.g. google, facebook), utm_medium (the channel type, e.g. cpc, email), utm_campaign (the campaign name), utm_term (the paid keyword, for search campaigns), and utm_content (to differentiate ads in the same campaign). Only source, medium, and campaign are required -- term and content are optional.

  • Do UTM parameters affect SEO?

    UTM parameters do not affect organic search rankings. They are stripped from Google's indexing crawl by design and passed through to analytics tools only. However, sharing URLs with UTM parameters on social media can cause duplicate content issues if those pages get indexed. Use canonical tags on pages that receive UTM-tagged traffic.

  • How do UTM parameters work in Google Analytics 4?

    In GA4, UTM parameters populate the session_source, session_medium, and session_campaign event parameters automatically. GA4 also introduced three new UTM parameters not in Universal Analytics: utm_source_platform, utm_creative_format, and utm_marketing_tactic, which provide richer campaign metadata for cross-channel reporting.

  • What is the difference between utm_source and utm_medium?

    utm_source identifies the specific platform or publisher (google, newsletter, twitter). utm_medium identifies the channel type or marketing method (cpc, email, social, affiliate). The medium is the broader category; the source is the specific origin. A single source can have multiple mediums -- you might run both cpc and display campaigns through Google.

  • Why do UTM-tagged links sometimes show as direct traffic in analytics?

    This happens when UTM parameters are stripped before the click registers in analytics. Common causes: redirects that don't preserve query strings, link shorteners that drop parameters, iOS Mail Privacy Protection pre-fetching URLs, and some AMP page configurations. Always test UTM links before launching campaigns.

Jay Ma

Co-founder

Co-founder of Hellyeah. Writes about building durable growth loops that compound over time.

Your next campaign, handled.

Hellyeah takes care of strategy, creative, and optimization.