UTM Parameters: A Naming Convention That Survives Your Team

UTM parameters are tags on a link that tell your analytics and CRM where a visit came from. Here are the five parameters, a naming convention that survives a growing team, and how to store first and last touch.

Pixel-art price tag beside a CRM board, a tagged link carrying its source into the customer record.

UTM parameters are tags you add to the end of a link so your analytics and CRM know where a visit came from. There are five classic ones: source, medium, campaign, term and content. They only help if everyone names things the same way. So the real work is a short, lowercase, controlled naming convention that a tool enforces.

Every team starts with clean UTMs. Then a contractor tags LinkedIn as "LinkedIn", sales tags it as "li", and someone uses "Paid Social" with a capital P. Six months later your paid social report is split across eight rows. Nobody trusts the numbers, so nobody uses them.

This guide covers what each parameter does, how GA4 and HubSpot read them, a naming convention that survives a growing team, what not to tag, and how to store first and last touch in your CRM.

Key takeaways

  • Values are case sensitive. Google and google are two sources in GA4. Lowercase everything.
  • Medium decides the channel. Use mediums that match GA4's channel rules, or paid traffic lands in the wrong bucket.
  • Controlled lists beat good intentions. Put source and medium in a dropdown, not a free text box.
  • Never tag internal links. It rewrites where the visitor came from.
  • Store both touches in the CRM. First touch never changes. Last touch updates on every form.

What are UTM parameters, and how do they work?

UTM parameters are key and value pairs added after a question mark in a URL. When someone clicks the link, your analytics tool reads the tags and records the visit against them. The page itself doesn't change.

Here's a tagged link.

https://example.com/report?utm_source=linkedin&utm_medium=paid-social&utm_campaign=2026-12_pipeline-report&utm_content=carousel-v2

That link says: this visit came from LinkedIn, it was paid social traffic, it was part of the December pipeline report campaign, and the person clicked the second carousel ad.

What do the five parameters mean?

Parameter What it answers Example values
utm_source Who sent the visit? linkedin, google, meta, newsletter
utm_medium What type of traffic is it? paid-social, cpc, email, referral
utm_campaign Which effort is it part of? 2026-12_pipeline-report
utm_term Which keyword or audience? crm-cleanup, retarget-90d
utm_content Which ad, link or version? carousel-v2, cta-footer

Google's GA4 help page on collecting campaign data with custom URLs says you should always use utm_source, utm_medium and utm_campaign. It also strongly recommends two newer ones: utm_id, a campaign ID, and utm_source_platform, the platform that sent the traffic. The same page lists utm_creative_format and utm_marketing_tactic, but notes that GA properties don't report on those yet.

My rule: the three required ones on every link, utm_content on every ad, utm_term when you split by audience or keyword, and utm_id if your ad platform gives you a campaign ID to match against.

How does GA4 read UTM parameters?

GA4 maps each tag to a traffic source dimension. Google's page on traffic-source dimensions and manual tagging lists the mapping: utm_source becomes Source, utm_medium becomes Medium, utm_campaign becomes Campaign, and so on.

Three details matter more than the mapping.

Values are case sensitive. Google's help says it plainly: utm_source=google is different from utm_source=Google. It recommends lowercase as standard practice. Missing tags show up as "(not set)".

Medium decides the channel. GA4 sorts traffic into channels like Email, Paid Social and Organic Social using rules. Google's default channel group definitions spell them out. For Email, the medium must be email, e-mail, e_mail or "e mail". For Paid Social, the source must match GA4's list of social sites and the medium must match a paid pattern: anything containing "cp", ppc, retargeting, or anything starting with "paid". If nothing matches, the traffic lands in Unassigned.

Two scopes matter here. The same page describes a First user default channel group, which shows how users first arrived, and a Session default channel group, which shows what started each session. Your first touch and last touch views already exist in GA4, if your tags are clean.

What happens with Google Ads?

Let Google Ads auto-tagging do the work. It adds a click ID that gives GA4 the Google Ads campaign, ad group and keyword. Google's traffic-source page says Analytics issues an error if it sees a mix of manual and auto-tagging parameters. So keep UTMs off your Google Ads links and use them everywhere else.

How does HubSpot read UTM parameters?

HubSpot reads UTMs into its traffic source properties, but only some of them, and in its own way.

HubSpot's guide to traffic source properties defines the original traffic source as the first known web source through which a contact interacted with your business. For sources like email marketing, paid search, paid social and other campaigns, HubSpot fills the drill-down fields with the campaign name from utm_campaign. For email marketing, it also takes the email name from utm_content.

The same page notes two catches. You can edit the source on a record by hand, which clears the drill-downs. And ad blockers can block HubSpot's tracking cookies, which affects these values.

HubSpot's own tracking URL builder requires a campaign name, because several reports use it. It treats medium, term and content as optional. I'd make medium required in your own convention anyway, because GA4 needs it to pick the channel.

The takeaway: HubSpot's built-in original source is useful, but it doesn't keep all five raw values. If you want them for reporting, capture them yourself. More on that below.

What naming convention survives a team?

A naming convention survives when it's short, written down and enforced by a tool. Here's the one I use.

Parameter Rule Allowed values (examples) Never
utm_source Platform or sender, one word per platform linkedin, google, meta, reddit, newsletter, g2, partner-acme LinkedIn, li, linkedin.com
utm_medium Fixed list that matches GA4 channel rules cpc, paid-social, email, social, referral, display, affiliate, event Paid Social, sponsored, blast
utm_campaign Date, then theme, then offer 2026-12_pipeline-report_ebook Q4 campaign, final-v3
utm_content Creative or link placement carousel-v2, video-15s, cta-footer ad1, test
utm_term Keyword or audience crm-cleanup, retarget-90d the full audience description
utm_id Ad platform campaign ID, if you have one The numeric ID from the platform Made-up IDs

Five rules sit under the table.

  1. Lowercase only. No exceptions. Your builder should lowercase every value on save.
  2. Hyphens inside a value, underscores between parts. So 2026-12_pipeline-report_ebook reads as three parts: date, theme, offer.
  3. Source and medium come from dropdowns. Free text is how "li" happens. Add a new source only by editing the list.
  4. Campaign starts with year and month. It sorts in time order and stops you from reusing a name next year.
  5. One person owns the list. Anyone can tag links. One person approves new sources and mediums.

Keep the rules on one page and the lists in one shared sheet. Then point every link builder at that sheet. Our free UTM builder lowercases values for you. If you also name CRM fields to match, the CRM field naming checker catches drift there too.

This is data governance at its smallest. It's boring, and it's the difference between a report you trust and a report you argue about.

Worked example: what messy UTMs cost a paid social report

Here's a worked example with assumed numbers.

Sessions by tagging: linkedin and paid-social 310, LinkedIn and sponsored 190, li and cpc 100. Only 310 count as Paid Social.Sessions by tagging: linkedin and paid-social 310, LinkedIn and sponsored 190, li and cpc 100. Only 310 count as Paid Social.
Worked example: three spellings for one channel leave about half the real traffic out of the Paid Social report. Worked example from this guide.

Say you spend $9,000 on LinkedIn ads in a month. The ads drive 600 sessions to your site. Three people built the links over the month.

  • One used source linkedin and medium paid-social. That's 310 sessions.
  • One used source LinkedIn and medium sponsored. That's 190 sessions.
  • One used source li and medium cpc. That's 100 sessions.

Now open the GA4 channel report. The first group matches the rules and lands in Paid Social. The second group can't: "sponsored" doesn't match the paid medium pattern. The third group uses a source GA4 is unlikely to recognize as a social site, so it can't count as Paid Social either.

Your Paid Social channel shows 310 sessions, not 600. That's about 52% of the real traffic.

The same split hits your CRM. Leads from those 290 missing sessions show up under other sources or none. The budget decision gets made on half the data. And nobody notices until someone asks why LinkedIn "doesn't work".

What should you not tag with UTMs?

Tag links that live off your site and bring people to it. Don't tag anything else.

Internal links. A UTM tells your analytics that a campaign brought this visitor. On a link from your homepage to your pricing page, the visitor is already there. Tagging that link rewrites where they came from, so credit moves from the ad or email that brought them to your own banner. Track internal clicks with events instead.

Google Ads links. Auto-tagging handles them, and mixing the two causes errors.

Links in your signature or bio, without thought. These are fine to tag, but give them a stable campaign, like always-on_email-signature. Don't let them pollute your launch campaigns.

Links you share in private DMs. Someone forwards the link and every visit from that thread gets credited to the original send. Tag sparingly and expect noise.

Redirects that drop query strings. Some redirects strip everything after the question mark. Test any short link or redirect before a launch and confirm the tags survive.

How do you store first and last touch in your CRM?

GA4 keeps first and last touch for sessions and users. Your CRM needs them on the contact and the deal, because that's where revenue lives.

Flow from a tagged link to a landing script, hidden form fields, first and last touch contact fields and the dealFlow from a tagged link to a landing script, hidden form fields, first and last touch contact fields and the deal
The contact fields are where most setups break: first touch must never be overwritten, and last touch must update every time.

First touch attribution credits the first source that brought someone in. Last touch attribution credits the last source before they converted. You want both. First touch tells you what creates new demand. Last touch tells you what converts it.

Here's the setup I use.

  1. Capture on landing. When someone lands with UTMs, a small script saves all five values in a first-party cookie. If they arrive with no UTMs, record the referrer instead.
  2. Keep two sets. The first touch set is written once and never overwritten. The last touch set updates on every new tagged visit.
  3. Pass them through hidden fields. Every form on the site has hidden fields for both sets. The script fills them before submit.
  4. Store them on the contact. Create ten fields: first touch source, medium, campaign, content and term, plus the same five for last touch. First touch fields only fill when empty.
  5. Copy them to the deal. When a deal is created, a workflow copies the contact's values onto it. Now you can report revenue by first touch and last touch campaign.

The GA4 for B2B SaaS guide walks through capturing UTMs and the Google Ads click ID into HubSpot with Google Tag Manager. For the workflow that copies values onto the deal, see these HubSpot workflow recipes.

Field set When it's written What it answers
First touch (5 fields) Once, on the first tagged visit What created this demand?
Last touch (5 fields) On every tagged visit before a form What converted it?
Lead source (1 field) When the contact is created Which bucket for reporting?
Self-reported source (1 field) On the demo form Where does the buyer say they heard of you?

Your lead source field can then be set by a simple rule from the first touch medium. Keep it to a short list of buckets, so it stays readable in reports.

Do UTMs solve B2B attribution?

No. They solve one part: clicks on links you control. B2B buyers also hear about you in podcasts, Slack groups, peer calls and AI answers. None of that carries a UTM.

So treat UTMs as the clean base layer, not the whole picture. Pair them with a "how did you hear about us?" field. The self-reported attribution guide shows how to set it up and code the answers. Then read both side by side.

Multi-touch attribution models need clean UTMs too. A model built on messy tags only spreads the mess across more touches. The piece on B2B attribution reality covers how to make decisions when every model is partly wrong.

How do you clean up UTMs you already have?

You can't rewrite old sessions in GA4. That data is already recorded. But you can stop the mess growing and fix your CRM.

  1. Export every source and medium pair from the last 90 days. Sort by sessions.
  2. Map each messy value to a clean one in a two-column sheet. So LinkedIn, li and linkedin.com all map to linkedin.
  3. Fix the live links first. Find every ad, email template and partner link still using a bad value. Update them where they live.
  4. Clean the CRM fields. Run a one-time update that rewrites old values to the clean list. Then lock the fields to the dropdown.
  5. Keep the mapping sheet. Use it to group old spellings when you report on past months.
  6. Check again in 30 days. Any new spelling means someone found a way around the builder. Close that gap.

Expect this to take a day or two for a small team. It pays for itself the first time a budget call rests on the report.

What are the most common UTM mistakes?

Free text sources and mediums. This is the root of most messes. Use dropdowns.

Capital letters. GA4 treats them as different values. Lowercase on save.

Mediums GA4 doesn't recognize. Words like "sponsored", "blast" or "promo" push traffic into the wrong channel or Unassigned. Check your mediums against Google's channel rules.

Tagging internal links. It rewrites the source of people already on your site. Use events.

Reusing campaign names. "webinar" in March and "webinar" in October merge into one row. Start every campaign with the year and month.

No owner. Without one person who approves new values, the list grows forever. Name the owner in the rules.

Not capturing them in the CRM. GA4 knows where sessions came from. Your CRM is where you see pipeline and revenue. If the tags never reach it, you can't tie spend to deals.

What should you do this week?

  1. Export last quarter's sources and mediums from GA4. Count how many spellings each platform has.
  2. Write the one-page rules. Use the template above as a start.
  3. Build the shared list of approved sources and mediums. Check every medium against GA4's channel rules.
  4. Point your team at one builder that lowercases values and uses the lists.
  5. Add first and last touch fields to your CRM, and hidden fields to every form.
  6. Search your site for internal links with UTMs and remove them.

If you'd rather have this built once and built right, our GTM engineering service sets up the tagging rules, the capture script, the CRM fields and the deal reporting as one system.

My take: UTMs are a team sport, so make the rules a tool

Nobody sets out to break their UTMs. They break because five people tag links under deadline, from memory, in free text boxes. Training doesn't fix that. Tools do.

So keep the convention short. Put it in dropdowns. Lowercase everything on save. Name one owner. Capture both touches in the CRM so the tags reach revenue.

Do that, and your reports stop being an argument. They start being the place where budget decisions get made.

FAQ

What are the five UTM parameters?

The classic five are utm_source, utm_medium, utm_campaign, utm_term and utm_content. Source is the site or sender, like linkedin. Medium is the type of traffic, like email or paid-social. Campaign is the effort. Term and content are optional and split out keywords, audiences or creatives. GA4 also reads a few newer ones, such as utm_id.

Are UTM parameters case sensitive?

Yes. Google's GA4 help says values are case sensitive, so google and Google show up as two separate sources. That's why the first rule of any naming convention is lowercase everything. Enforce it in your link builder, not in people's memory, because someone will always type a capital letter by accident.

Should you use UTM parameters on internal links?

No. A UTM tells your analytics that a campaign brought the visitor. On an internal link, the visitor is already on your site, so the tag rewrites where they came from and credit moves to your own banner. Track internal clicks with events instead, and keep UTMs for links that live off your site.

Do you need UTMs on Google Ads links?

Usually not. Google Ads auto-tagging adds a click ID that gives GA4 richer campaign data. Google's help says Analytics flags an error when it sees a mix of manual and auto-tagging parameters. Let auto-tagging handle Google Ads and use UTMs for every other paid platform, email and partner link.

How do you get UTM parameters into HubSpot?

HubSpot reads utm_campaign and utm_content into its traffic source drill-down fields on its own. For full control, capture all five values in a first-party cookie when someone lands, then pass them into hidden form fields. Store them in first touch fields that never get overwritten and last touch fields that update on every form.

What is the difference between utm_source and utm_medium?

Source is who sent the visit, like linkedin, google or a newsletter name. Medium is the type of traffic, like paid-social, cpc or email. GA4 uses the medium to decide the channel in its default reports. So medium needs a short, fixed list of values that match those rules, while source can grow as you add platforms.

More like this

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.