Skip to the content
Start free

UTM parameters

UTM parameters are tags added to the end of a link, such as ?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale, so analytics can tell which email, post or advert brought each visitor. They only work on links you control. They do not change the page the visitor sees: they are a label your analytics reads on arrival.

What are UTM parameters? #

A UTM tag is a URL parameter: a name and value after the ? in a URL, joined by &. Google’s URL builder help says the order of the parameters does not matter. Google Analytics 4 reads the tags when a session starts and shows them as the session’s source, medium and campaign.

Why do they matter? #

Without them, a click from your newsletter or a social post can land in “direct” or a vague referral group. Google’s channel rules count a session as Direct when the source is “(direct)” and the medium is “(none)” or “(not set)”. With tags, you can see which campaign brought visits and sales. That is the base of attribution and conversion tracking. See direct traffic.

How does it work, step by step? #

  1. A person clicks your tagged link in an email, post or advert.
  2. Your page loads, and the analytics tag reads the full address, tags included.
  3. Google says the session_start event carries the attribution details, such as UTM tags and the referrer.
  4. The session gets its source, medium and campaign. Every page view in that session belongs to it.
  5. The values appear in the Traffic acquisition report, and in Page location rather than Page path.

Which tags must I use? #

Google Analytics says to always use 3: utm_source (where from, such as newsletter), utm_medium (the channel, such as email or cpc) and utm_campaign (the campaign name). Missing ones can show as “(not set)”. Google also strongly recommends utm_id and utm_source_platform. Optional tags include utm_content and utm_term.

The tags Google Analytics accepts #

Tag What it holds
utm_source The referrer, such as google, newsletter4 or billboard
utm_medium The marketing medium, such as cpc, banner or email
utm_campaign The product, slogan or promo code, such as spring_sale
utm_id A campaign ID, matching any campaign data you upload
utm_content Which creative, link or button was clicked
utm_term The paid keyword
utm_source_platform The platform that sent the traffic

Google also lists utm_creative_format and utm_marketing_tactic, but says neither is currently reported in Google Analytics.

Where do UTM tags belong? #

  • Email newsletters: one tag set per send, with utm_content for each link.
  • Social posts: the platform as source, a social medium.
  • Paid adverts: Google gives cpc and banner as example mediums. See shopping ads.
  • Print and QR codes: Google gives “billboard” as an example source.
  • Paid placements on other sites: tag them, and mark them correctly: see sponsored and UGC links.
  • Not on links others give you freely. You cannot tag earned backlinks; the referrer shows those.

How does the medium pick the channel? #

GA4’s default channel group reads your medium. Google says these channel rules are not case sensitive, unlike the values in your reports.

If utm_medium is GA4 channel
email, e-mail, e_mail or e mail Email
social, social-network, social-media, sm, social network or social media Organic Social
display, banner, expandable, interstitial or cpm Display
referral, app or link Referral
affiliate Affiliates
ai-assistant (exactly) AI Assistant
matches ^(.*cp.*|ppc|retargeting|paid.*)$ Paid Search or Paid Social, if the source is a search or social site

A medium that matches no rule can end up Unassigned.

Each tagged address is another version of the same page. Google’s duplicate URL guide uses a tracking address, ?gclid=ABCD, as an example of one people should not see as the main URL. It recommends a canonical tag on each page, pointing to itself. So never put tagged links in your XML sitemap or your own menus. See duplicate content.

Why does it matter for AI answers? #

You cannot tag the links an AI writes in its own answers. Those visits depend on the referrer. GA4 puts a session in the AI Assistant channel when the referrer matches its list of assistants, such as ChatGPT, Gemini, Deepseek, Copilot and Grok. Google says this channel leaves out AI Overviews and AI Mode, which count as Organic Search. For links you do write, such as in an assistant you run, utm_medium=ai-assistant puts them in the same channel. See ChatGPT referral traffic.

A worked example #

A bakery’s December newsletter has two links to the same cake page, one in a big button and one at the foot of the email:

https://bakery.example/christmas-cakes/?utm_source=newsletter&utm_medium=email&utm_campaign=christmas_cakes&utm_content=top_button
https://bakery.example/christmas-cakes/?utm_source=newsletter&utm_medium=email&utm_campaign=christmas_cakes&utm_content=footer_link

Both visits count under the same campaign, in the Email channel, and utm_content shows which link people actually used. Google says values are case sensitive, so Newsletter in next month’s email would show as a separate source. Its best practice is lowercase throughout.

What are the common mistakes? #

  • Tagging your own internal links. The tags are for links that point to your site from outside, such as emails, posts and adverts. On internal links they relabel visits that came from somewhere else, and add extra versions of your addresses. Use internal linking without tags.
  • Mixed spelling. email and Email are different values in reports.
  • “cp” in an unpaid medium. The paid rule matches any medium containing “cp”, so a medium such as “cpd-course” from a social site can be counted as Paid Social.
  • Tags lost in a redirect. If a redirect drops the query string, the visit loses its campaign. Long redirect chains make this more likely.
  • Looking in the wrong place. Google says UTM tags are left out of the Page path + query string dimension. They show in Page location.
  • Personal data in a tag. Never put an email address or name in a UTM value: anything in a link can be seen and shared.

How to check it #

  1. Build the link. Use Google’s Campaign URL Builder or write the tags by hand. Our URL parser splits a tagged link into its parts, and the URL encoder and decoder fixes spaces and symbols.
  2. Click it and follow every hop. The Redirect Checker shows each hop, so you can see the tags survive. Read 301 vs 302 redirect if a hop surprises you.
  3. Check the landing page works. The HTTP Header Checker shows the status code. The Broken Link Checker finds dead links in the page your campaign points to.
  4. Check the canonical. The Meta Tag Checker shows the tags in the page head. The Canonical Tag Checker will confirm a tagged address points back to the clean one.
  5. Keep tagged links out of your sitemap. The XML Sitemap Checker lists every address in it.
  6. Check your tracking loads. The Tracking Checker will list every tracker a page loads, and the Cookie Checker will show what it sets before consent. A cookie banner and Consent Mode v2 change what GA4 can count. Server-side tracking and cookieless analytics are other ways to measure.
  7. Read the result. In GA4, open Reports, then Acquisition, then Traffic acquisition. Look at session source, medium and campaign, and the landing page.
  8. Compare a rival’s campaign page. Compare Two Websites shows our checks for both pages side by side.
  9. Join campaigns to orders. In URSY Pro, opening in stages: Campaigns, Sources, Sales by channel, AI referrals and Measurement integrity.

What URSY.com counts #

We count people with a cookie-free counter, so nothing is stored on the device. Our request log keeps the path only: query strings, UTM tags included, are never stored with a request. When an AI sends a person and the visit carries a referrer such as chatgpt.com, we record it as observed. Many AI apps send none, so that figure is a minimum. Read our methodology.

Questions #

Are UTM parameters bad for SEO? #

Not on outside links. They create extra addresses, so keep them out of internal links and sitemaps, and use a canonical tag that points to the clean page.

Are UTM values case sensitive? #

Yes, in reports. Google says utm_source=google and utm_source=Google are different. The channel rules themselves ignore case.

Do I need all of them? #

Google says always use source, medium and campaign. The rest are optional, though Google strongly recommends utm_id and utm_source_platform.

Why is my campaign showing as “(not set)”? #

A required tag was missing, or a redirect dropped the tags before the page loaded.

No. You only control your own links. ChatGPT visits are found by the referrer, or show as Direct when there is none.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: UTM parameters. URSY. Updated 26 November 2026. https://ursy.com/wiki/utm-parameters/ · Section links

Tools for this

All 871 wiki entries, A to Z →