UTM codes in Google Analytics 4: where they show up, and why some go missing

November 29, 2026 · Hoplytic team · 6 min read

The short version: this guide in 74 seconds.
Read the video transcript

You tagged every link. Where are your UTM codes in GA four?

Open Reports, Acquisition, Traffic acquisition, and set the dimension to Session campaign. Add Session manual ad content as a secondary dimension. To test a fresh link, click it and watch Realtime. Standard reports can lag by a day.

UTM source is Session source. UTM campaign is Session campaign. UTM content is Session manual ad content. And UTM term is Session manual term.

Not set usually means a parameter is missing from the link, or misspelled. Unassigned means a custom medium, like newsletter or f b underscore ads, matched no default channel rule. And Facebook, facebook and facebook dot com are three rows, because values are case-sensitive. Use lowercase.

GA4 can't show commission earned on another site. Hoplytic's site script reads UTM codes on landing and keeps them for seven days in your site's browser storage. It stores them with the visitor's next tracked click, so sales can be grouped by UTM campaign.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

You tagged every link, the campaign ran, and now you open Google Analytics 4 and can't find your UTM codes. Or you find them, next to rows of (not set), "Unassigned" and three spellings of the same source. This guide shows where UTM codes live in GA4 and what each common oddity means.

Short answer: in GA4, open Reports, Acquisition, Traffic acquisition. Set the table's dimension to Session source / medium or Session campaign to see your utm_source, utm_medium and utm_campaign values. utm_content and utm_term live in Session manual ad content and Session manual term, which you add as a secondary dimension or in an exploration.

Which GA4 dimension holds each UTM code

UTM parameterSession-scoped dimension (Traffic acquisition)First-user dimension (User acquisition)
utm_sourceSession sourceFirst user source
utm_mediumSession mediumFirst user medium
utm_campaignSession campaignFirst user campaign
utm_contentSession manual ad contentFirst user manual ad content
utm_termSession manual termFirst user manual term
utm_idSession manual campaign IDFirst user manual campaign ID

There are also "manual" versions of source, medium and campaign (Session manual source, and so on). They show only what your UTM codes said, while the plain ones can be filled from other signals such as Google Ads auto-tagging. When the two disagree, that's a clue to what happened.

Traffic acquisition and User acquisition answer different questions. Traffic acquisition credits each session to how that session started. User acquisition credits each user to how they first arrived. A newsletter that brings back old readers looks strong in the first and weak in the second.

Three ways to view UTM codes in GA4

1. The Traffic acquisition table

Reports, Acquisition, Traffic acquisition. Click the dropdown above the first column and choose Session campaign. Click the plus sign next to it and add Session manual ad content as a secondary dimension. Now each row reads like 2026-w48 / top-button, with sessions, engagement and key events next to it. Depending on how your property's menu is set up, the Acquisition section may sit under a Life cycle heading.

2. An exploration

For anything more specific, use Explore, Free form. Add the dimensions Session source / medium, Session campaign and Session manual ad content, and the metrics Sessions and Key events. Put campaign in rows first, then content. Filter to one campaign to compare every link inside it.

3. Realtime, for testing

Click your own tagged link, then open Realtime. The visit should appear within moments with your source and campaign. If it shows up there but your link's values don't, the problem is the link, not the report. Standard reports can lag by a day, so don't judge a fresh link from them.

What (not set) means

Google's help says missing UTM parameters produce (not set). In practice the usual causes are:

What "Unassigned" means

GA4 sorts sessions into default channels using rules on source and medium. If no rule matches, the session goes to Unassigned. The usual cause is a custom medium:

Your utm_mediumGA4 default channel
emailEmail
newsletterUnassigned (unless the source matches an email rule)
socialOrganic Social
cpc or paid-social, with source facebookPaid Social
affiliateAffiliates
fb_adsUnassigned

The full rules, including the lists of social and search sites, are on Google's default channel group page. Your source and medium still appear in the Session source / medium report either way; Unassigned only affects the channel view. If you need your own buckets, GA4 lets you create custom channel groups.

Why the same source shows up three times

UTM values are case-sensitive. Facebook, facebook and facebook.com are three rows. GA4 won't merge them for you after the fact. Fix it going forward with a lowercase rule and a fixed list of sources, as described in UTM tracking explained, and generate links from a sheet that enforces it, as in how to generate a UTM link. For old data, a custom channel group with "matches regex" conditions can at least group the variants in the channel view.

Why tagged visits lose their UTM codes

The visitor clicked a tagged link, but GA4 credits the session to something else. Common reasons:

Why direct visits show a campaign

The reverse also confuses people: a reader comes back by typing your address, yet the session shows last week's newsletter campaign. In session-scoped reports, GA4 avoids crediting "direct" when the same user had an earlier non-direct source within the lookback window, so the return visit inherits the newsletter. This is GA4's attribution rules at work, not a broken tag. How that affects credit for key events is covered in UTM attribution.

What GA4 won't show you

GA4 reports what happens on your site. If your visitors leave to buy elsewhere, such as through an affiliate link, GA4 can show the outbound click (see GA4 outbound link tracking) but not the commission. To see which UTM campaign earned money on another site, the campaign value has to travel with the outbound click into the network's sub-ID. Hoplytic's site script does that: it reads UTM codes when a visitor lands, keeps them for 7 days in your site's own browser storage, and stores them with the visitor's next tracked click, so sales can be grouped by utm_campaign outside GA4.

Questions people ask

Where are UTM codes in Google Analytics 4?

Go to Reports, Acquisition, Traffic acquisition and change the table's primary dimension to Session source / medium or Session campaign. For utm_content and utm_term, add the Session manual ad content or Session manual term dimension.

Why does GA4 show (not set) for my campaign?

Most often the link had a source and medium but no utm_campaign, or the session started without a tagged page view. Add all three main parameters to every tagged link.

Are UTM codes case-sensitive in Google Analytics?

Yes. GA4 treats Facebook and facebook as two different sources. Google recommends using lowercase for every value.

How long until UTM data shows in GA4?

Realtime shows a visit within moments, which is the fastest way to test a link. Standard reports can take up to a day or more to process.

More in Tracking fundamentals

Also: tracking glossary · ad platform macros · Markdown copy