Sub topic 1
Source, medium and campaign: the raw inputs
GA4 does not decide a session's channel by looking at the whole visit. It reads three values attached to the session: source, medium and campaign. Every channel rule in later chapters is a test on these values, so you need to know what they contain and where they come from.
Prerequisites
This chapter assumes you have:
- Basic familiarity with the GA4 interface and the standard Traffic acquisition report.
- An understanding of sessions, users and events in GA4.
- General knowledge of marketing channels such as search, email and social.
- Awareness that a URL can carry query parameters after a
?, separated by&.
The three core dimensions
Each dimension answers a different question about where a visit came from.
| Dimension | Question it answers | Typical values |
|---|---|---|
| Source | Which site, platform or list sent the visitor? | `google`, `newsletter`, `facebook`, `(direct)` |
| Medium | What kind of traffic was it? | `organic`, `cpc`, `email`, `referral`, `(none)` |
| Campaign | Which named initiative was it part of? | `spring_sale_2026`, `(organic)`, `(direct)`, `(not set)` |
GA4 also combines the first two into Session source / medium, shown as google / organic or newsletter / email. This combined dimension is the one you will use most when diagnosing classification.
Source and medium are the main inputs to the default channel group. Campaign matters for a few rules, such as separating shopping campaigns from other paid search, and for custom channel groups. The default grouping also uses other values, such as the source category that GA4 assigns to known sites. Later chapters cover those.
Other related dimensions
UTM tagging can carry two more values, and GA4 stores more campaign fields than most people use.
- Term (
utm_term) is traditionally the paid search keyword. - Content (
utm_content) separates variants, such as two links in one email. - Campaign ID (
utm_id) is an identifier for the campaign, useful when you import cost data. - Source platform (
utm_source_platform) names the platform that managed the campaign, such asSearch Ads 360.
For the default channel group, treat these as supporting detail. Source, medium and campaign decide the outcome.
Where the values come from
GA4 fills these dimensions from several places. When more than one is available, there is an order of precedence.
The diagram is a model, not an exact specification. It shows the usual order, and the sections below describe each branch.
Manual tagging with UTM parameters
When you add UTM parameters to a link, GA4 reads them from the landing page URL and uses them as the session's values. Here is a newsletter link:
https://www.example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026The session reports as newsletter / email with campaign spring_sale_2026. Because the medium is email, the default channel group places it in Email.
Compare a paid search link:
https://www.example.com/spring-sale?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale_2026The source is google and the medium is cpc. GA4 treats that pattern as Paid Search. The same source with a different medium would classify differently, which shows that the medium carries most of the meaning.
Auto-tagging from Google Ads
If you link a Google Ads account to the property and turn on auto-tagging, Google Ads adds a gclid parameter to your ad clicks. GA4 uses it to fill source, medium and campaign from the Ads account without any UTM parameters. By default, auto-tagging data takes precedence over UTM values on the same URL. The Google Ads link settings include an option that lets manual tags override it. A later chapter covers linking in detail.
The referrer
If there are no campaign parameters, GA4 looks at the HTTP referrer, which is the page the visitor was on before. The browser supplies it, and you do not control it.
- A referrer from a recognized search engine gives source
google(orbing, and so on) and mediumorganic, with campaign(organic). - A referrer from any other site gives the referring domain as the source, medium
referral, and campaign(referral). - A referrer on your own domain is not treated as a new source. Within a session it is ignored, and GA4 keeps the original values. You can also list domains under "List unwanted referrals" in the data stream's tag settings so that payment providers or login pages do not start new referral sessions.
The fallback: direct
With no campaign parameters and no usable referrer, GA4 records source (direct), medium (none) and campaign (direct). The word "direct" suggests someone typed your address, but it really means "GA4 could not identify a source". A later chapter on Direct and Referral covers why.
Reading the special values
Some values in these dimensions are placeholders and not real sources.
| Value | Meaning |
|---|---|
| `(direct)` | No campaign data and no referrer were found. |
| `(none)` | No medium. It normally pairs with `(direct)`. |
| `(organic)` | Campaign placeholder for unpaid search traffic. |
| `(referral)` | Campaign placeholder for traffic from other sites. |
| `(not set)` | GA4 had no value to report for that dimension. |
(not set) and Unassigned are different things. (not set) says a dimension has no value. Unassigned is a channel group result that says the values were present but no rule matched. The Unassigned chapter returns to this.
Session scope, first-user scope and event scope
Source, medium and campaign each exist in more than one scope, and picking the wrong one is a common reporting error.
- Session scope (
Session source,Session medium,Session campaign) describes how each session started. Use it for questions such as "which channels drove sessions this week?". - First user scope (
First user source, and so on) describes how the user first arrived and does not change afterward. Use it for acquisition of new users. - Event scope (plain
Source,Medium,Campaignin some reports and the Advanced explorations) is attached to individual events, especially conversions. Its meaning depends on the report, and it can differ from session values.
The same visitor can appear under google / organic as a first user and newsletter / email in a later session. Neither is wrong. They answer different questions. The scopes chapter covers the channel dimensions in the same way.
Case sensitivity and consistency
GA4 reports store UTM values as they were written. Email, email and E-mail become separate rows in a source / medium table. The default channel rules for some mediums accept several spellings, but your reports will still show one row for each spelling. A naming convention is therefore part of the setup:
- Use lowercase for all UTM values.
- Use underscores or hyphens, never spaces, and use only one of them.
- Use medium values that match what the default channels expect, such as
email,cpcandsocial. - Document the convention in a shared sheet so each person tags the same way.
Checking the values in GA4
To see the raw values for your property:
- Open Reports, then Acquisition, then Traffic acquisition.
- Use the dropdown above the table's first column to change the primary dimension to "Session source / medium".
- Add "Session campaign" as a secondary dimension with the plus (+) button.
- Scan for placeholders, unexpected spellings, and sources you did not set up yourself.
Do this before you read any channel report, because channels are only as accurate as the values behind them. Realtime and DebugView let you test a tagged link: open it in a fresh browser session and watch which source and medium appear.
Summary of the model
- A session gets source, medium and campaign once, from its first event with traffic data.
- The values come from Google Ads auto-tagging, UTM parameters, the referrer, or the direct fallback.
- Values are case-sensitive and stored as written.
- Placeholders such as
(direct)and(not set)are values GA4 supplies and not names you chose. - Session, first-user and event scopes can hold different values for the same person.
Exercise
A visitor clicks a link in your newsletter that ends in ?utm_source=Newsletter&utm_medium=Email&utm_campaign=Spring_Sale. A colleague's links use lowercase for the same values. What will you see in the Session source / medium report, and what should you change?
Show answer
You will see two rows, Newsletter / Email and newsletter / email, because GA4 stores the values as written and treats different capitalization as different values. Adopt a lowercase naming convention for all UTM parameters and correct the tagged links, so future sessions land in a single row. Past data is not rewritten.
Exercise
A session starts from a page on a partner site that links to you with no UTM parameters, and the visitor's browser sends a referrer. Which source, medium and campaign will GA4 record, assuming the partner is not a search engine and is not on your unwanted referrals list?
Show answer
Source is the partner's domain, medium is referral, and campaign is (referral).
Exercise
A person first reached your site through organic Google search, then returned a week later from an email link. In which scope would this person show google / organic, and in which scope would the later session show newsletter / email?
Show answer
google / organic appears in first user scope, which records how the user first arrived. newsletter / email appears in session scope for the later session.