UTM parameters

UTM parameters are tags added to the end of a URL, such as utm_source, utm_medium and utm_campaign, that tell analytics tools where a visit came from. They make campaign traffic from emails, ads and partner links visible in reports.

When someone clicks a link in a newsletter or social post, analytics tools do not always know where they came from. UTM parameters solve that by adding labels to the link itself. A tagged URL looks like this: example.com/offer?utm_source=newsletter&utm_medium=email&utm_campaign=spring-sale. Google Analytics 4 reads those values and attributes the session accordingly.

The main parameters:

  • utm_source: where the traffic comes from, such as newsletter, linkedin or a partner's name.
  • utm_medium: the type of channel, such as email, cpc, social, referral or display.
  • utm_campaign: the campaign name.
  • utm_content: which version or link was clicked, useful for A/B tests or several links in one mail.
  • utm_term: the keyword, mainly for paid search.

GA4 also supports utm_id (a campaign ID), utm_source_platform, utm_creative_format and utm_marketing_tactic. Values appear in GA4 under dimensions such as session source / medium and session campaign.

Medium values matter. GA4 sorts traffic into default channel groups partly based on utm_medium. A medium of email ends up in the Email channel; something unusual like "mail-blast" may end up in Unassigned. Use standard values for the medium and keep your own naming for source and campaign.

Rules for clean data:

  1. Write a naming convention and stick to it. Values are case-sensitive, so Newsletter and newsletter become two sources.
  2. Use lowercase and hyphens, no spaces.
  3. Keep a shared sheet with every tagged link, so the whole team uses the same values.
  4. Never use UTM parameters on internal links. A click from your homepage to a product page would start a new session with the wrong source and overwrite the original one.
  5. Do not tag Google Ads links manually if auto-tagging is on; it handles attribution better.

UTM parameters and SEO. Every tagged URL is technically a separate URL. Search engines usually consolidate them to the clean version, especially when the page has a self-referencing canonical tag, so tagged links rarely cause duplicate content issues on a well-configured site. Still, keep tagged URLs out of sitemaps and internal links.

Using UTMs on sponsored articles. For links in sponsored articles, the main goal is usually SEO value, and many advertisers prefer a clean URL that looks natural in the text. If you want to measure referral traffic per placement, a UTM tag on the link works, as long as the target page has a correct canonical. Without UTMs, referral traffic from the publisher still shows up in GA4 under the publisher's domain as source, which is often enough. Since the advertiser decides which target URL goes into the article, either approach is possible.

Questions about UTM parameters

What are the five standard UTM parameters?

utm_source, utm_medium, utm_campaign, utm_content and utm_term. GA4 also supports a few extra ones, such as utm_id.

Should I use UTM parameters on internal links?

No. They restart the session with a new source and overwrite the original traffic source, which corrupts your reports.

Do UTM parameters hurt SEO?

Not on a well-set-up site. With a self-referencing canonical tag on the target page, search engines consolidate tagged URLs to the clean version.

Related terms