Web Analytics
UTM Parameters for GA4: Naming Rules for Clean Data
EyeCaptain

UTM Parameters for GA4: Naming Rules for Clean Data

Learn how GA4 reads UTM parameters, why bad tags land in Unassigned, and a simple naming convention that keeps campaign conversion data clean.

Dimitris Andreadakis

6 min read
128 views
utm parameters ga4utm naming conventionga4 unassigned trafficutm_medium valuesga4 campaign tracking

When a campaign drives sales but GA4 files the visits under "Unassigned" or "(not set)", you cannot tell which ad, email or post earned the conversion. In most accounts the cause is not GA4 itself. It is inconsistent UTM parameters: one person writes "Facebook", another "facebook.com", a third leaves the medium blank. This guide shows how GA4 reads UTM values, which parameters to use, and how to set a naming convention your whole team can follow.

What UTM parameters do in GA4

UTM parameters are tags added to the end of a URL, such as ?utm_source=newsletter&utm_medium=email&utm_campaign=black_friday. When someone lands on your site through that link, GA4 reads the tags and stores them as the traffic source of the session. Every conversion in that session is then credited to that source, medium and campaign.

Google lists the parameters GA4 supports in its help article on collecting campaign data with custom URLs. The ones that matter for most teams are:

ParameterWhat it answersExample
utm_sourceWho sent the visitornewsletter, facebook, partner_site
utm_mediumWhat kind of traffic it isemail, paid_social, cpc, affiliate
utm_campaignWhich campaign or promotionblack_friday_2026
utm_contentWhich ad, link or creativehero_button, video_15s
utm_termWhich keyword or audiencerunning_shoes
utm_idA campaign ID for data importsbf26_01

Google says you should always use utm_source, utm_medium and utm_campaign together. If one is missing, the report shows "(not set)" in its place, and the visit may not reach the right channel.

Why utm_medium decides your channel

GA4 sorts traffic into default channel groups such as Email, Paid Social, Organic Social and Referral. It does this with fixed rules that look mostly at source and medium. You cannot edit these default rules, so your UTM values have to fit them. Google publishes the rules in its traffic-source dimensions documentation. A few that cause the most trouble:

  • Paid Social needs a social site as the source and a paid medium, one that matches patterns such as "cpc", "ppc", "retargeting" or anything starting with "paid".
  • Organic Social picks up a social site as the source, or a medium such as "social" or "social-media".
  • Email needs "email" (or a close variant such as "e-mail") as the source or medium.
  • Affiliates needs the medium "affiliate".
  • Anything that matches no rule lands in Unassigned.

This is why a Meta ad tagged utm_medium=facebook_ads often ends up in the wrong place. "facebook_ads" does not match the paid pattern, so with facebook as the source the visit is counted as Organic Social, not Paid Social. Change it to utm_medium=paid_social with utm_source=facebook and the same visit lands in Paid Social, next to the spend it came from. The same goes for an email platform that sends utm_medium=newsletter: the word "newsletter" is not on the Email list, so put it in utm_source and use "email" as the medium.

Case and spelling count

Google's help page states that parameter values are case sensitive: utm_source=google and utm_source=Google are stored as two different sources. "SpringSale" and "Spring_Sale" become two campaigns. Channel grouping ignores case, but your source, medium and campaign reports do not, so one campaign can end up split across three rows that you have to add up by hand.

Small spelling differences do the same damage. "fb", "facebook" and "facebook.com" are three sources. "BF", "black-friday" and "blackfriday2026" are three campaigns. Over a year these splits make it hard to compare one promotion with the next, and they hide which channel brings buyers rather than browsers.

A naming convention you can copy

A naming convention is a short written rule set that everyone who builds links follows. Keep it on one page. This version works for most stores and lead generation sites:

  1. Lowercase only. No capitals anywhere in UTM values.
  2. Underscores between words, no spaces or hyphens. Spaces turn into "%20" and hyphens get mixed with underscores.
  3. Source is the platform or sender, written the same way every time: facebook, instagram, google, linkedin, newsletter, partner name.
  4. Medium comes from a fixed list that matches GA4 channels: cpc, paid_social, social, email, affiliate, display, referral. Nobody adds a new medium without updating the list.
  5. Campaign follows one pattern, for example topic_offer_yyyy_mm: shoes_20off_2026_11.
  6. Content describes the creative or link position: carousel_a, header_link, video_15s.
  7. Term is only used for keywords or audiences, never for notes.

Store every tagged URL in a shared sheet with columns for date, owner, landing page, the five parameters and the final URL. A sheet with dropdowns for source and medium stops most mistakes before they reach a live ad. GA4 and many ad platforms offer URL builders, but a builder does not enforce your list; the sheet does.

EyeCaptainEyeCaptain
Conversions Booster

Users decide in 3 seconds — are you losing them?

If your page doesn't hook visitors instantly, they're gone. Get a full breakdown of what's causing friction above the fold.

Slow LCP detected

Where UTMs should and should not go

Tag links that bring people to your site from places GA4 cannot identify on its own: email, paid social, display, affiliate and partner links, QR codes on print, links in PDFs, and posts on social profiles if you want campaign-level detail.

Leave Google Ads to auto-tagging. Google Ads adds its own click ID and sends richer campaign data to GA4 than manual tags can. Adding manual UTMs on top can create conflicting values unless you have deliberately configured GA4 to prefer them.

Never put UTMs on internal links, such as a homepage banner that points to a sale category. A tagged internal click replaces the real source of the visit with your own banner, so the conversion is credited to "homepage_banner" instead of the email or ad that brought the visitor. To measure internal banners, track the click as an event. Our guide to GA4 custom events shows how to set one up.

Also check that tags survive the journey. Redirects, link shorteners and some consent setups can strip query strings before GA4 reads them. Click each new tagged link once, then look for the visit in GA4's Realtime report with the expected source and medium. If you run a consent banner, test with consent both accepted and declined, because declined visits are recorded differently.

How to audit your current UTM data

Before writing new rules, look at what is already in GA4. This takes about half an hour:

  1. Open Reports, then Acquisition, then Traffic acquisition. Change the primary dimension to Session source / medium and set the range to the last 90 days.
  2. Sort by sessions and scan for duplicates that differ only by case or spelling.
  3. Switch the dimension to Session default channel group and click Unassigned. Add Session source / medium as a secondary dimension to see which tags failed the rules.
  4. Repeat with Session campaign to find split campaign names and "(not set)" rows.
  5. List each bad value next to its correct version and the team or tool that created it.

Old data cannot be rewritten in standard reports, so the goal is to fix the source of the problem. Update templates in your email platform, ad platform URL parameters and any saved links in social scheduling tools. If you buy media on conversion data, clean source data also matters for bidding, as covered in dirty conversion data and Smart Bidding.

Connect tagged traffic to landing page performance

Clean UTMs tell you which campaign sent a visitor. They do not tell you why that visitor did not buy. Once each campaign has its own row, compare conversion rate by campaign and landing page. A campaign with a strong click-through rate and a weak conversion rate usually points to a mismatch between the ad and the page, which we cover in ad scent and landing page conversion rate and, for Meta, visual scent between ads and landing pages. A GA4 funnel exploration filtered by campaign then shows the step where those visitors drop off.

Key takeaways

  • Always set utm_source, utm_medium and utm_campaign together.
  • Choose medium values that match GA4's default channel rules, such as paid_social, email and affiliate.
  • Use lowercase and underscores; GA4 treats different cases as different values.
  • Keep one shared sheet of tagged links with fixed lists for source and medium.
  • Do not tag internal links or Google Ads traffic that already uses auto-tagging.

When your tracking is clean and one campaign still converts poorly, the landing page is the next place to look. A free CRO audit from EyeCaptain reviews one page and lists the issues most likely to hold visitors back.

Enjoyed this article?

One short email a week with practical CRO and UX tips

No spam. Unsubscribe anytime.

Find what stops your visitors from converting

EyeCaptain is an AI-powered CRO & UX audit tool that automatically scans your pages, identifies UX issues, and gives you actionable optimization suggestions to increase conversions. Try it for free, no card, no commitment.

Free Website Audit
Share this article
LinkedIn X

About the author

Founder of EyeCaptain. Writes about conversion rate optimization, UX analysis and the neuromarketing behind pages that actually sell.

More articles by Dimitris Andreadakis