Sub topic 5
How GA4 Turns UTM Values into Dimensions
This chapter covers what happens after a visitor clicks a tagged link. You will see where GA4 reads the UTM values, which signal wins when several are present, and which dimensions the values end up in.
It assumes you can already build a tagged URL with utm_source, utm_medium and utm_campaign. It also assumes your GA4 property has a web data stream with the Google tag (gtag.js or Google Tag Manager) on every page. Channel groups and report navigation are covered in the next two chapters.
From URL to dimension
GA4 does not read UTM values from a separate request or from your server logs. The Google tag on the landing page sends events such as page_view and session_start. Each event includes the full page URL as the page_location parameter, query string included. GA4 processing looks for campaign parameters in that URL and stores the traffic source with the data.
Take this landing URL:
https://example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026&utm_content=hero_buttonGA4 produces these values:
| URL parameter | Stored value | Shown in reports as |
|---|---|---|
| `utm_source` | `newsletter` | Source, Session source |
| `utm_medium` | `email` | Medium, Session medium |
| `utm_campaign` | `spring_sale_2026` | Campaign, Session campaign |
| `utm_content` | `hero_button` | Manual ad content |
Two consequences follow from this design:
- The tag must load on the landing page. If a redirect or a consent tool delays the tag, or if the redirect drops the query string before the tag fires, GA4 never sees the UTM values.
- The values come from the URL at the moment the tag fires. Changing the address bar later with the History API does not retroactively change a session that has already been attributed.
Which signal wins
A visit can carry several clues about where it came from. GA4 picks one source and medium pair for the visit. The usual order is:
- A Google Ads click ID (
gclid) on a property linked to Google Ads with auto-tagging on. The result isgoogle / cpc. - UTM parameters in the landing URL.
- The HTTP referrer, which is the site the visitor came from.
- Nothing at all, which GA4 reports as
(direct) / (none).
Manual UTM tags beat the referrer. A link in a Facebook post that carries utm_source=facebook&utm_medium=paid_social is reported with those values. It is not reported as facebook.com / referral. This is why tagging everything you control gives you cleaner data.
Auto-tagging usually beats manual tags for Google Ads traffic. A later chapter covers that conflict and the setting that changes it.
Three scopes for the same values
GA4 stores campaign information at three scopes, and each scope has its own dimensions. Picking the wrong scope is one of the most common reasons two reports disagree.
| Scope | Question it answers | Example dimensions |
|---|---|---|
| User | What brought this person the first time? | First user source, First user medium, First user campaign |
| Session | What brought this visit? | Session source, Session medium, Session source / medium, Session campaign, Session manual term, Session manual ad content |
| Event | What was the source when this event was collected? | Source, Medium, Campaign, Manual term, Manual ad content |
User-scoped values are set once, at the first visit, and do not change on later visits. If a customer first arrived through organic search, then clicked your email a week later, "First user medium" stays organic and "Session medium" for the second visit is email.
Session-scoped values describe one visit. Most of the Acquisition reports use these. Use session dimensions to count which campaigns bring visits, and use first-user dimensions to count which campaigns bring new people.
Event-scoped values are available in Explorations and custom reports. They are useful when you want key event counts to carry the source that was active when the event fired.
Several names include the word "manual", such as "Session manual source". These dimensions hold values that came from UTM parameters. They do not include values taken from Google Ads auto-tagging or from the referrer. The plain "Session source" dimension contains whichever source GA4 chose, whatever its origin. For a UTM-only audit, the manual variants isolate the tagged traffic.
Sessions and the campaign change
Universal Analytics started a new session whenever the campaign changed. GA4 does not. A GA4 session ends after 30 minutes of inactivity (the default timeout, which you can change in the data stream settings).
This has three practical effects:
- A visitor who arrives from an email, leaves the tab open for 10 minutes, and then clicks a tagged social link in another window may still be in the same session.
- In that case the session keeps the traffic source that was recorded at its start. The later UTM values may still appear on event-scoped dimensions.
- Session counts can differ from what you expect if you are used to the Universal Analytics rules.
Internal links that carry UTM parameters are a particular hazard here. They can overwrite the real source of a visit with an internal label. The pitfalls chapter covers how to fix that.
What GA4 does with incomplete tags
GA4 handles incomplete tags without raising errors. It shows a placeholder or applies a fallback.
| Landing URL has | Typical result |
|---|---|
| `utm_source`, `utm_medium`, `utm_campaign` | All three populated as written |
| `utm_source` and `utm_medium`, no campaign | Campaign shows `(not set)` |
| `utm_source` only | Medium shows `(not set)`, and the visit usually lands in the Unassigned channel |
| `utm_campaign` only, no source | The tag is not treated as a campaign link. Source and medium come from the referrer or direct |
| `utm_medium=email` with a missing or empty source | Not reliable. Do not publish links like this |
The placeholder (not set) means "GA4 received no value for this dimension." It does not mean tracking is broken. The fix is always in the link, not in GA4.
The label (not set) also appears for reasons that have nothing to do with UTM tags. A report may combine a dimension and a metric from different scopes, and then rows without a matching value show (not set). Check the dimension scope first, then check the link.
Values are case sensitive and stored as sent
GA4 does not clean your values. It stores what the URL contains, after URL decoding. These are different rows in a report:
newsletterandNewsletterspring_sale_2026andspring-sale-2026emailande-mail
Because the rows are separate, a casing slip splits one campaign into two lines. Channel matching is more forgiving than row grouping, so a Email medium may still land in the Email channel while appearing as its own row. The naming chapter that precedes this one explains the lowercase and underscore convention. GA4 itself cannot enforce it, so your link builder has to.
Encoded characters are decoded before storage. utm_campaign=spring%20sale is reported as spring sale, with a space. Spaces in names make filtering and regular expressions harder, so avoid them when you build links.
Inspecting the stored values in BigQuery
If your property exports to BigQuery, you can read the values GA4 stored for each session start. Replace the project and dataset with your own.
SELECT
collected_traffic_source.manual_source AS source,
collected_traffic_source.manual_medium AS medium,
collected_traffic_source.manual_campaign_name AS campaign,
COUNT(*) AS sessions
FROM `my-project.analytics_123456789.events_*`
WHERE event_name = 'session_start'
AND _TABLE_SUFFIX BETWEEN '20261101' AND '20261128'
GROUP BY source, medium, campaign
ORDER BY sessions DESC;The collected_traffic_source fields hold what was in the URL, before any channel logic. Comparing them with the report dimensions shows whether a mismatch comes from the link (the raw values are wrong) or from GA4's source selection (the raw values are right but another signal won).
Processing time and where to look first
Tagged data appears in different places at different speeds:
- The Realtime report shows new sessions within seconds. Use it to confirm that the tag read your parameters.
- Standard reports can take several hours to fill in, and some data takes up to 24 to 48 hours to be final.
- Explorations read from the same processed data, so they have the same delay.
If a campaign link works in Realtime but a standard report is still empty, wait. If Realtime shows (direct) / (none) for a link that you know carries UTM parameters, the problem is in the landing flow, such as a redirect that removes the query string.
Common errors in this stage
- Reading the wrong scope. "First user campaign" and "Session campaign" answer different questions, and the totals will not match.
- Expecting UTM values to override a Google Ads click. With auto-tagging on, the click ID wins by default.
- Testing a link by pasting it into the same browser tab repeatedly. If the session is still open, a second visit may not start a new session. Use a fresh private window and wait out the timeout, or compare event-scoped dimensions.
- Blaming GA4 for
(not set)when the link has no campaign parameter. - Assuming the page report shows tagged URLs. "Page path and screen class" removes the query string, and "Page location" keeps it.
Exercise
A visitor first reaches your site by clicking an organic search result. Ten days later they click an email link tagged with utmsource=newsletter&utmmedium=email&utmcampaign=springsale_2026 and start a new session. What do "First user medium" and "Session medium" show for the second visit, and why?
Show answer
"First user medium" shows organic, because user-scoped dimensions are set at the first visit and do not change. "Session medium" shows email, because session-scoped dimensions describe the current visit, and the UTM values in the landing URL are used instead of the referrer.
Exercise
A link ends with ?utmsource=partnerblog&utm_medium=referral. In the Acquisition report, what do you expect to see for campaign, and what is the fix?
Show answer
Campaign shows (not set), because the URL carries no utmcampaign. The fix is to add utmcampaign to the link and use the new link for future clicks. Existing rows in reports stay as they are.