UTM Parameters: Tag Links So GA4 Files Each Campaign Where You Expect
Which UTM parameters GA4 reads, the channel rules that decide where a tagged link lands, how to build links correctly and how to audit your tags.
Edited by Andrew Storz · Last reviewed December 3, 2026 · 10 min read · How we check our guides
You sent a newsletter on Tuesday, posted the same offer on Facebook, and handed out flyers with a QR code. By Friday, Google Analytics shows more visits, but not which of the three sent them. Some of the traffic sits in a channel called "Unassigned", and a campaign you named carefully appears twice, once with a capital letter.
UTM parameters fix most of this. They are short tags added to the end of a link. When someone clicks a tagged link, the tags arrive with them, and Google Analytics 4 (GA4) uses them to record the source, medium and campaign of the visit. Used carelessly, they also cause the mess described above.
By the end of this guide you'll know exactly which parameters GA4 reads, how it uses your tags to sort visits into channels, how to predict where a tagged link will land before you send it, and how to audit the tags you've already used.
The parameters GA4 reads
Google Analytics Help lists these parameters for destination URLs:
- utm_source: the referrer, for example google, newsletter4 or billboard.
- utm_medium: the marketing medium, for example cpc, banner or email.
- utm_campaign: the product, slogan or promo code, for example spring_sale.
- utm_id: a campaign ID. Google says to use the same IDs you use when uploading campaign data.
- utm_source_platform: the platform responsible for directing the traffic, such as a buying platform that sets budgets and targeting. Google's examples are Search Ads 360 and Display & Video 360.
- utm_term: the paid keyword.
- utm_content: tells creatives apart, such as two call-to-action links in the same email.
- utm_creative_format and utm_marketing_tactic: the type of creative and the targeting approach. Google notes that neither is currently reported in GA4.
Google says you should always use utm_source, utm_medium and utm_campaign. It goes further: if you set one UTM parameter, it strongly recommends setting all the relevant ones, especially utm_source, utm_medium, utm_campaign, utm_id and utm_source_platform, because missing parameters show up as (not set) in reports. For a small business without uploaded campaign data or a buying platform, the core three plus utm_content usually cover what you need.
How a tagged link is put together
A tagged link is the page address, a question mark, then parameter=value pairs joined with ampersands. The order of the pairs doesn't matter. Google's own example is https://www.example.com/?utm_source=summer-mailer&utm_medium=email&utm_campaign=summer-sale.
Two details trip people up. If the address already has a question mark (for example ?location=north), add your tags after it with an ampersand rather than a second question mark. And if the address has a # anchor, the tags go before the #. The URI standard, RFC 3986, defines the query as starting at the first question mark and ending at a number sign or the end of the address, so anything after the # isn't part of the query.
Values are case sensitive. Google's example: utm_source=google is different from utm_source=Google.
Where your tags show up in GA4
GA4 turns your tags into the Session source, Session medium and Session campaign dimensions, which you can see under Reports, then Acquisition, then Traffic acquisition. The report's default dimension is Session default channel group, which sorts sessions into channels such as Email, Organic Social and Paid Search using rules Google publishes. The rules for manually tagged traffic include:
- Email: source or medium is email, e-mail, e_mail or "e mail".
- Organic Social: source matches Google's list of social sites, or medium is social, social-network, social-media, sm, "social network" or "social media".
- Paid Social, Paid Search, Paid Video, Paid Shopping: source matches Google's list of social, search, video or shopping sites, and medium matches a paid pattern (anything containing "cp", ppc, retargeting, or anything starting with "paid"). For Paid Shopping, a campaign name containing shop or shopping can also qualify.
- Paid Other: a paid-pattern medium that doesn't fit one of those.
- Display: medium is display, banner, expandable, interstitial or cpm.
- Referral: medium is referral, app or link.
- Affiliates: medium is affiliate. SMS: source or medium is exactly sms. AI Assistant: medium is exactly ai-assistant. GA4 also sets that medium itself when the referrer is on its list of AI assistants (Google names ChatGPT, Gemini, Deepseek, Copilot and Grok as examples). Google's AI Overviews and AI Mode are excluded from this channel and count as Organic Search.
- Unassigned: what GA4 uses when no rule matches.
Google says these channel definitions aren't case sensitive and can't be edited. So utm_medium=Email still lands in Email, but it shows as a separate row from email when you look at source and medium. If you need channels of your own, such as "Print", you can create a custom channel group.
Three more details explain puzzling numbers. First, GA4 leaves UTM tags out of the "Page path + query string" and "Landing page + query string" dimensions; they appear in Page location instead. Second, each session has only one traffic source, and GA4 doesn't start a new session when it meets a new campaign mid-visit. Tags picked up mid-session are attached to the events that carried them and used for event-based attribution. Third, Google says a direct visit that follows a referred visit never overrides the earlier referrer, and sessions in the Traffic acquisition report follow a non-direct last click rule with a 90-day lookback by default. That's why a return visit from a bookmark can still be credited to your newsletter.
Google Ads is the exception to manual tagging. With auto-tagging on, Google Ads adds a GCLID (Google Click Identifier) to ad clicks. Google Ads Help says that in GA4, auto-tagging takes priority over manual tagging. If both are present, GA4 uses the auto-tagged values for source and medium, though manually added utm_content and utm_term still fill the manual ad content and manual term dimensions.
Worked example
A hypothetical café is about to send a May promotion three ways. Before sending, it checks where each link will land using the published rules:
- Newsletter: utm_source=newsletter&utm_medium=email&utm_campaign=may_menu. The medium is email, so it lands in Email.
- A colleague's version of the same link: utm_source=newsletter&utm_medium=Email&utm_campaign=May_Menu. The channel is still Email, because channel rules ignore case. But in Session source / medium and Session campaign it becomes a second row.
- Facebook post: utm_source=facebook&utm_medium=social&utm_campaign=may_menu. Medium social matches Organic Social.
- Boosted Facebook post: utm_source=facebook&utm_medium=paid_social&utm_campaign=may_menu. The medium matches the paid pattern, so it's Paid Social if facebook is on Google's list of social sites (Google's channel descriptions name Facebook as an example). With a source that isn't on the list, it would fall to Paid Other.
- Flyer QR code: utm_source=flyer&utm_medium=print&utm_campaign=may_menu. No rule matches print, so it lands in Unassigned. That's acceptable if you look it up by campaign, or you can add a "Print" channel in a custom channel group.
The café's menu page also has an existing parameter and an anchor: https://www.example.com/menu?location=north#catering. The correct tagged link keeps both and puts the tags before the anchor: https://www.example.com/menu?location=north&utm_source=newsletter&utm_medium=email&utm_campaign=may_menu#catering.
Now the cost of link 2. Say Session campaign shows May_Menu with 140 sessions and may_menu with 310. The campaign really had 450 sessions, and anyone reading only the top row misses 140 ÷ 450 = 31% of them. Exports, dashboards and filters that match on exact text will all undercount the same way.
Try it: audit your tagged traffic
You'll need Viewer access to your GA4 property and about 20 minutes.
- Go to Reports, then Acquisition, then Traffic acquisition, and set the date range to the last 90 days.
- Look for a row called Unassigned in the Session default channel group table. If it exists, use the button next to the dimension drop-down to add Session source / medium as a secondary dimension. This shows which tag combinations matched no rule.
- Switch the main dimension to Session campaign. Scan for the same campaign written two ways: capitals, hyphens versus underscores, or a typo. Add the sessions together to see the true total.
- Switch to Session source / medium and look for (not set), which usually means one of the core three tags was missing.
- Open a spreadsheet and write your naming list: one source value per platform, one medium value per channel, lowercase, one separator. Choose mediums from the rules above so each lands in the channel you expect.
- For your next campaign, build each link from that list, click it yourself, and check that the tags are still in the address bar after any redirect or link shortener. The Realtime report shows activity from the last 30 minutes, so you can confirm the visit arrived, but its source cards use first user dimensions, so if you've visited your site before, your new tags may not appear there. Standard reports can take up to a day.
Write down every channel or campaign you found split or misfiled, and the corrected value you'll use from now on. You can also build links on screen with the UTM link builder.
Common mistakes
- Inventing medium values. A medium such as newsletter-blast or qr matches no medium rule, so unless the source happens to match one (a known social site, for example), the visit lands in Unassigned. Use email, social, cpc, referral and the other values from the channel rules.
- Mixing capitals and separators. Channels survive it, but campaign and source rows split, and every total you read is too low.
- Tagging links between your own pages. GA4 won't start a new session, but the new values are attached to the events they arrive with and used for event-based attribution, so they can take credit for key events in event-scoped reports. Tag only links that bring people in from elsewhere.
- Adding manual tags to Google Ads instead of using auto-tagging. In GA4, auto-tagging wins for source and medium; link your accounts and let it do the work.
- Putting personal information in tags. Google's policy forbids sending personally identifiable information, such as email addresses, to Analytics, and it names utm_source, utm_medium, utm_term, utm_campaign and utm_content specifically. Never merge a subscriber's email address into a link.
- Leaving off source, medium or campaign, which produces (not set) rows.
Common questions
Are utm_id and utm_source_platform necessary?
Google strongly recommends setting them along with the core three, and leaving them off produces (not set) in the related dimensions. utm_id matters most if you upload campaign data to GA4. If you don't, consistent source, medium and campaign values matter far more.
Why does email traffic show up under Unassigned?
Usually because neither the medium nor the source is one of the values the Email rule looks for. Use utm_medium=email on future links, and check one in the Traffic acquisition report once it has data.
Why do the channel totals look right but the campaign rows look wrong?
Channel rules ignore case; campaign and source values don't. Email and email both count toward the Email channel, but they appear as separate rows everywhere else.
Will tagged links split page reports?
Not in the usual page dimensions. GA4 leaves UTM tags out of the "Page path + query string" and "Landing page + query string" dimensions and records them in Page location instead, so a tagged visit to your menu page still counts toward the menu page there. Only Page location, which keeps the full address, shows the tagged version as its own row.
How should a QR code on printed material be tagged?
There's no print channel in GA4's default group, so pick one source and medium you'll always use for print, such as utm_source=flyer&utm_medium=print, and give each piece its own campaign or utm_content. Find it by campaign, or create a custom channel group if you want it as a channel.
Key takeaways
- Always set utm_source, utm_medium and utm_campaign; Google also recommends utm_id and utm_source_platform, and utm_content separates links within one campaign.
- GA4 sorts tagged traffic into channels with published rules; mediums it doesn't recognize land in Unassigned.
- Channel rules ignore case but reported values don't, so agree on lowercase names and keep a shared list.
- Tags go after any existing query string and before any # anchor; never tag internal links or include personal data.
- For Google Ads, use auto-tagging; GA4 gives it priority over manual tags.
Sources
- Google Analytics Help, URL builders: Collect campaign data with custom URLs
- Google Analytics Help, Default channel group
- Google Analytics Help, Custom channel groups
- Google Analytics Help, [GA4] Traffic acquisition report
- Google Analytics Help, Traffic-source dimensions, manual tagging, and auto-tagging
- Google Analytics Help, Campaigns and traffic sources
- Google Analytics Help, Realtime report
- Google Analytics Help, User acquisition report vs. Traffic acquisition report
- Google Analytics Help, Events report
- Google Ads Help, About auto-tagging
- Google Analytics Help, Best practices to avoid sending Personally Identifiable Information (PII)
- RFC 3986, Uniform Resource Identifier (URI): Generic Syntax (IETF, January 2005)
Spotted something out of date? Let us know.