Sub topic 5
How GA4 Turns UTM Values into Dimensions
Assume that you understand basic URLs and query strings, have a GA4 web data stream installed, and can open GA4 reports. This chapter focuses on what happens after a visitor opens a tagged link.
A UTM parameter is a query-string value that describes a marketing link. For example:
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_saleWhen the page loads, the Google tag reads these values from the URL. GA4 then uses them as traffic-source information for the events that it collects.
From URL values to GA4 data
The processing flow usually looks like this:
The URL values do not become reports immediately as separate columns named exactly like the query string. GA4 interprets them and stores them as traffic-source fields. A dimension is an attribute used to describe or group data, such as a campaign name or session medium. A metric is a measurement, such as sessions, users, or key events.
For example:
| URL parameter | Common GA4 dimension | Example value |
|---|---|---|
| `utm_source` | Source | `newsletter` |
| `utm_medium` | Medium | `email` |
| `utm_campaign` | Campaign | `spring_sale` |
| `utm_term` | Manual term | `running_shoes` |
| `utm_content` | Manual ad content | `hero_button` |
GA4 normally expects the three core values: source, medium, and campaign. The other parameters provide more detail when several links share the same campaign.
Scope changes what a value means
The same visitor can appear with different traffic-source values depending on the dimension's scope.
A scope tells you which unit of data a dimension describes:
- User scope describes the visitor's first known acquisition source.
- Session scope describes the source that started a particular visit.
- Event scope describes the traffic-source information associated with an individual event.
GA4 commonly exposes these versions:
| Dimension | Scope | Question it answers |
|---|---|---|
| First user source | User | Which source first acquired this user? |
| Session source | Session | Which source started this session? |
| Event source | Event | Which source is associated with this event? |
| Session campaign | Session | Which campaign started this session? |
| First user campaign | User | Which campaign first acquired this user? |
Suppose a person first arrives from google / organic. A week later, that person clicks your tagged email link and starts a new session from newsletter / email.
The first-user dimensions continue to describe the original acquisition. The session dimensions describe the email session. If you compare these dimensions without checking their scope, the numbers can seem inconsistent even though GA4 is answering different questions.
How GA4 assigns the values
For a web session, GA4 reads campaign information when the visitor arrives. It uses the landing page URL and the traffic-source signals available at that time. The resulting source, medium, and campaign values are associated with the session and its collected events.
A simplified example:
- A visitor opens a URL with
utm_source=partner,utm_medium=referral, andutm_campaign=launch. - The page sends a
page_viewevent. - GA4 starts or continues a session.
- GA4 records the campaign values as traffic-source information.
- Later events, such as
view_itemorpurchase, can be analyzed with that session's attribution.
The UTM text is not a replacement for the event name. A purchase event remains a purchase event. UTM values add context that lets you group the event by campaign or source.
Use the session dimensions when you want to measure visits generated by a campaign. Use first-user dimensions when you want to study how users were originally acquired. Use event dimensions when your analysis needs traffic-source information at event level.
Missing and unexpected values
GA4 can show (not set) when the selected dimension has no value for the row being reported. This can happen when an event lacks the required traffic-source context, when a report combines incompatible scopes, or when data has not been processed fully.
A value of Unassigned is different. It generally means GA4 received traffic-source information but could not map the source and medium to one of its default channel groups. For example, a custom medium such as blast may be meaningful to your team but may not match the rules for Email, Paid Search, or another default group.
UTM values are also case-sensitive for grouping purposes in practice. Newsletter, newsletter, and NEWSLETTER can create separate values. Consistent naming prevents one campaign from being split across multiple report rows.
A practical interpretation
When reviewing campaign data, follow this order:
- Choose the question: first acquisition, session acquisition, or event attribution.
- Select the matching dimension scope.
- Group by source, medium, or campaign.
- Compare metrics such as sessions, users, key events, or revenue.
- Investigate
(not set)andUnassignedrows separately.
Exercise
A user first arrives through google / organic, then returns through newsletter / email and completes a purchase. Which dimension should you use to analyze the email visit, and which should you use to analyze the user's original acquisition?
Show answer
Use a session-scoped dimension, such as Session source or Session campaign, for the email visit. Use a first-user dimension, such as First user source, for the original acquisition.