UTM parameters. Know where every click came from.

UTM parameters are short tags added to the end of a link that tell your analytics where a visitor came from. A UTM code, a UTM tag and a UTM link all refer to the same thing: a URL carrying those tags.

By Brady Heinrich · Updated

In short

  • A UTM link is a normal URL with tags on the end that record the source, medium and campaign of each click.
  • Always set utm_source, utm_medium and utm_campaign. Add utm_content and utm_term when you need to tell ads or keywords apart.
  • Values are case sensitive in Google Analytics, so write everything in lowercase and keep one shared list of allowed values.
  • Choose medium values that match GA4's channel rules, such as email, cpc and paid_social, or traffic lands in Unassigned.
  • Tag links you place on other sites and in emails. Do not tag links between pages on your own site.

What is a UTM?

A UTM is a tag added to a URL so that analytics tools can record how a visitor arrived. The tags sit after a question mark at the end of the link. They do not change the page the visitor sees. They only label the visit.

A link without tags looks like this:

https://example.com/pricing/

The same link with UTM parameters looks like this:

https://example.com/pricing/?utm_source=linkedin&utm_medium=paid_social&utm_campaign=spring_launch

When someone clicks the second link, your analytics records that the visit came from LinkedIn, through paid social, as part of the spring launch campaign. Without the tags, visits from apps, email clients and documents often arrive with no referrer at all and are counted as direct traffic.

People use several names for this. "UTM code", "UTM tag" and "UTM parameter" usually mean one of the individual tags, such as utm_source=linkedin. "UTM link" or "UTM URL" means the whole address with the tags attached. "UTM tracking" is the practice of using them.

What does UTM stand for?

UTM stands for Urchin Tracking Module. The parameters were introduced by Urchin, the predecessor of Google Analytics, and the name stayed after the product changed. They are now a convention read by most analytics tools, not only Google's.

The five UTM parameters

There are five standard UTM parameters: source, medium, campaign, term and content. Google's documentation says you should always use the first three when you add parameters to a URL.

ParameterWhat it recordsExample valuesNeeded?
utm_sourceWho sent the visitor: the site, platform or listgoogle, linkedin, newsletterAlways
utm_mediumThe type of channelcpc, email, paid_social, referralAlways
utm_campaignThe campaign, promotion or launch the link belongs tospring_launch, q3_webinarAlways
utm_termThe paid keywordcrm_softwarePaid search, when keywords are not tagged automatically
utm_contentWhich ad, creative or link was clickedvideo_a, footer_linkWhen one campaign has several ads or links

Google Analytics also reads a few newer parameters. The one worth knowing is utm_id, a campaign ID used to match a campaign with cost data you upload. Google also lists utm_source_platform, utm_creative_format and utm_marketing_tactic, and notes that the last two are not currently reported in Google Analytics properties. Most teams only need the five in the table.

utm_source vs utm_medium

The source is who sent the visitor and the medium is how. Source answers "which platform or sender": google, linkedin, a partner's name, your own newsletter. Medium answers "what kind of traffic": cpc, email, paid_social, referral.

A quick test: the medium should be one of a short fixed list, perhaps ten values in total. The source can be one of hundreds. If your mediums include "linkedin" or "june_newsletter", the two have been swapped.

To create a UTM link, add a question mark to the end of the destination URL, then the parameters as name=value pairs joined by ampersands. You can type them by hand, but a builder avoids typos.

  1. Copy the full destination URL, including https.
  2. Choose the source, medium and campaign from your agreed list of values.
  3. Add content or term if this link needs to be told apart from others in the same campaign.
  4. Build the link. The UTM builder assembles it and handles special characters for you.
  5. Test it. Click the link in a private window and check the page loads and the parameters are still in the address bar. Some redirects strip them.
  6. Record it in a shared sheet with the date, the owner and where it was used.

If the destination URL already has a question mark in it, add your UTM parameters with an ampersand instead of a second question mark.

UTM naming conventions

A UTM naming convention is a short set of rules everyone on the team follows, so the same channel is always written the same way. It matters because analytics tools treat every different spelling as a different thing.

Google's documentation states that parameter values are case sensitive, so utm_source=google and utm_source=Google are recorded as two sources. It recommends lowercase as standard practice, one unique source value per platform, one unique medium per channel and campaign names that match the campaign name exactly.

Rules that work for most teams:

  • Lowercase only. No exceptions, so nobody has to remember them.
  • No spaces. Use underscores or hyphens, and pick one.
  • A fixed list of mediums. Write it down. New mediums need agreement.
  • One name per source. Decide between "linkedin" and "li" once.
  • Campaign names with a pattern. For example, period, then theme, then audience: 2026q1_pricing_launch_smb.
  • Content values that describe the creative. video_a, carousel_b, cta_top. Not ad1 and ad2.
  • No personal data. Never put names or email addresses in a URL.
  • One shared sheet listing allowed values and every link created.

Medium values that match GA4 channels

GA4 sorts traffic into default channels using rules based on source and medium. Choose medium values that those rules recognise.

You want traffic in this GA4 channelUse a medium likeHow GA4 decides
EmailemailSource or medium matches email, e-mail, e_mail or "e mail"
Paid Searchcpc or ppcSource is a known search site, and medium contains "cp", is ppc or retargeting, or starts with "paid"
Paid Socialpaid_socialSource is a known social site, and medium matches the same paid pattern
Organic SocialsocialSource is a known social site, or medium is social, social-network, social-media, sm, "social network" or "social media"
Displaydisplay or bannerMedium is display, banner, expandable, interstitial or cpm
AffiliatesaffiliateMedium is exactly affiliate
ReferralreferralMedium is referral, app or link

Traffic that matches no rule is labelled Unassigned. An invented medium such as "promo" or "socialpost" will end up there.

UTM examples

These examples show complete parameter sets for common situations. The values are illustrations. Swap in your own names.

SituationSourceMediumCampaignContent
Monthly newsletter, main buttonnewsletteremail2026_06_product_updatecta_top
LinkedIn sponsored postlinkedinpaid_social2026q2_pricing_launchvideo_a
Organic LinkedIn post by a founderlinkedinsocial2026q2_pricing_launchfounder_post
Facebook and Instagram adsfacebook, instagrampaid_social2026q2_pricing_launchcarousel_b
Partner's blog postpartner_namereferral2026_partner_featurebody_link
QR code on an event standevent_nameqr2026_trade_showstand_banner
Link in a sales email signaturesales_signatureemailalways_onsignature

Two things to notice. The same campaign name is used across every channel that promotes the launch, so you can compare channels inside one campaign. And "qr" is not a medium GA4's default rules recognise, so that row would land in Unassigned unless you add a custom channel group. That is fine if you know it will happen.

A full example for the LinkedIn ad:

https://example.com/pricing/?utm_source=linkedin&utm_medium=paid_social&utm_campaign=2026q2_pricing_launch&utm_content=video_a

UTM parameters in Google Analytics

In Google Analytics 4, UTM values appear in the Traffic acquisition report as session-level dimensions: Session source, Session medium, Session source / medium and Session campaign.

What to know when reading them:

  • Missing parameters show as (not set). Google's documentation says missing UTM parameters result in (not set) values in reporting. That is why it recommends setting source, medium and campaign together.
  • Different capitalisation creates separate rows. "Email" and "email" are two mediums. This is the most common cause of fragmented reports.
  • The channel comes from your values. The Session default channel group is worked out from the source and medium using the rules above. If campaigns are showing up as Unassigned, check the medium first.
  • UTMs are removed from some page dimensions. Google notes that UTM parameters are omitted from the Landing page + query string and Page path + query string dimensions and are populated in Page location instead.

To see which campaigns lead to signups, read your signup or demo conversions against these dimensions. From there you can work out a conversion rate for each source, medium and campaign.

Common UTM mistakes

Most UTM problems come from inconsistency, not from the parameters themselves.

  • Mixed case and spellings. linkedin, LinkedIn and linked-in become three sources. Fix it with a lowercase rule and a shared list.
  • Source and medium swapped. utm_source=email and utm_medium=newsletter breaks channel grouping. Source is the sender. Medium is the type.
  • Tagging internal links. UTMs describe how a visitor reached your site. Put them on a banner or menu link between your own pages and you risk replacing the real source with your own site. Use event tracking for internal clicks.
  • Leaving parameters out. A link with only utm_campaign fills the other fields with (not set).
  • Invented mediums. Values outside the channel rules send traffic to Unassigned.
  • Campaign names nobody can decode. "test2_final" means nothing six months later. Use the naming pattern.
  • No record. Without a shared sheet, each person invents their own values and the convention lasts a month.
  • Not testing redirects. Link shorteners and redirects sometimes drop the query string. Click every link before it goes out.
  • Personal data in URLs. URLs are stored in analytics, browser histories and server logs. Keep names and emails out.

When to use UTMs, and when not to

Use UTM parameters on every link you control that points to your site from somewhere else. Leave them off everything else.

Use UTMs onDo not use UTMs on
Email newsletters and automated emailsLinks between pages on your own site
Paid ads on any platformCanonical tags and sitemap entries
Social posts and profile linksOrganic search listings, which you cannot tag
Partner, affiliate and sponsorship links, QR codes, PDFs and email signaturesAny link that would carry personal data in its values

Once links are tagged consistently, the same data feeds every channel metric you report, from click-through rate on a campaign to cost per acquisition by source. Clean tags are also the first step in tracking newer sources, covered in the resource on tracking website traffic from AI search engines.

Questions

Are UTM parameters case sensitive?

Yes. Google's documentation states that parameter values are case sensitive, so utm_source=google and utm_source=Google are reported separately. Use lowercase for everything.

Do UTM parameters affect SEO?

UTM parameters are labels for analytics, not signals for search. The thing to guard against is duplicates: avoid linking to tagged URLs from your own site, and keep a canonical tag on each page pointing at the clean URL.

Which UTM parameters are required?

Google says to always use utm_source, utm_medium and utm_campaign when you add parameters to a URL. utm_term and utm_content are optional.

Can visitors see UTM parameters?

Yes. They are visible in the address bar and stay in the link if someone copies and shares it. Do not put anything in them you would not want a customer or competitor to read.

Do UTM parameters work with tools other than Google Analytics?

Yes. Most analytics, CRM and marketing automation tools read the same five parameters, which is why a single naming convention across tools is worth the effort.

Why is my UTM traffic showing as Unassigned in GA4?

Unassigned is the label GA4 uses when no channel rule matches. The usual cause is a medium value the default rules do not recognise, so change it to a standard one such as email, cpc, paid_social or referral.

Sources

  1. URL builders: Collect campaign data with custom URLs, Google Analytics Help
  2. Default channel group, Google Analytics Help
  3. UTM parameters, Wikipedia

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.