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.
| Parameter | What it records | Example values | Needed? |
|---|---|---|---|
| utm_source | Who sent the visitor: the site, platform or list | google, linkedin, newsletter | Always |
| utm_medium | The type of channel | cpc, email, paid_social, referral | Always |
| utm_campaign | The campaign, promotion or launch the link belongs to | spring_launch, q3_webinar | Always |
| utm_term | The paid keyword | crm_software | Paid search, when keywords are not tagged automatically |
| utm_content | Which ad, creative or link was clicked | video_a, footer_link | When 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.
How to create a UTM link
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.
- Copy the full destination URL, including https.
- Choose the source, medium and campaign from your agreed list of values.
- Add content or term if this link needs to be told apart from others in the same campaign.
- Build the link. The UTM builder assembles it and handles special characters for you.
- 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.
- 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 channel | Use a medium like | How GA4 decides |
|---|---|---|
| Source or medium matches email, e-mail, e_mail or "e mail" | ||
| Paid Search | cpc or ppc | Source is a known search site, and medium contains "cp", is ppc or retargeting, or starts with "paid" |
| Paid Social | paid_social | Source is a known social site, and medium matches the same paid pattern |
| Organic Social | social | Source is a known social site, or medium is social, social-network, social-media, sm, "social network" or "social media" |
| Display | display or banner | Medium is display, banner, expandable, interstitial or cpm |
| Affiliates | affiliate | Medium is exactly affiliate |
| Referral | referral | Medium 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.
| Situation | Source | Medium | Campaign | Content |
|---|---|---|---|---|
| Monthly newsletter, main button | newsletter | 2026_06_product_update | cta_top | |
| LinkedIn sponsored post | paid_social | 2026q2_pricing_launch | video_a | |
| Organic LinkedIn post by a founder | social | 2026q2_pricing_launch | founder_post | |
| Facebook and Instagram ads | facebook, instagram | paid_social | 2026q2_pricing_launch | carousel_b |
| Partner's blog post | partner_name | referral | 2026_partner_feature | body_link |
| QR code on an event stand | event_name | qr | 2026_trade_show | stand_banner |
| Link in a sales email signature | sales_signature | always_on | signature |
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 on | Do not use UTMs on |
|---|---|
| Email newsletters and automated emails | Links between pages on your own site |
| Paid ads on any platform | Canonical tags and sitemap entries |
| Social posts and profile links | Organic search listings, which you cannot tag |
| Partner, affiliate and sponsorship links, QR codes, PDFs and email signatures | Any 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.