Sub topic 2
How GA4 Records Source, Medium, and Channel
This chapter assumes that you know the GA4 interface, understand referrers and UTM parameters, and can access a GA4 property. Some changes, such as custom channel groups, require Editor or Administrator access.
The three attribution fields
When a visitor arrives, GA4 tries to describe where the visit came from:
- Source is the origin of the visit, such as
google,newsletter, orchatgpt.com. - Medium is the type of traffic, such as
organic,email,referral, or(none). - Default channel group is a broader category built from source, medium, campaign, and other rules. Examples include Organic Search, Email, Referral, and Direct.
For example, a visitor who clicks a normal link from chatgpt.com might produce these values:
| GA4 dimension | Example value | Meaning |
|---|---|---|
| Session source | `chatgpt.com` | The site that referred the visitor |
| Session medium | `referral` | The visit came through a referring link |
| Session default channel group | `Referral` | GA4's broader classification |
The channel group is not another independent signal. GA4 derives it from the other attribution data.
How GA4 chooses the values
At the start of a session, GA4 examines the URL and the browser's referrer information. It commonly uses signals in this order:
- Campaign parameters in the URL, such as
utm_source,utm_medium, andutm_campaign. - The referring page, available through the browser's
document.referrervalue. - Direct attribution, when neither campaign nor referrer information is available.
A tagged link such as this one gives GA4 explicit campaign values:
https://example.com/guide?utm_source=chatgpt&utm_medium=ai_assistant&utm_campaign=product_guideThe resulting session values normally include:
- Source:
chatgpt - Medium:
ai_assistant - Campaign:
product_guide
Without those parameters, a browser referral from https://chatgpt.com/ may be recorded as chatgpt.com / referral.
The exact value depends on the link, redirects, privacy settings, and whether the assistant preserves the referrer when the visitor clicks.
Session scope matters
GA4 contains several attribution dimensions that look similar but answer different questions.
- Session source / medium describes the source that started the current session.
- First user source / medium describes how GA4 first acquired the user.
- Event-scoped traffic dimensions can use attribution rules for a particular conversion or event.
Use session dimensions when you want to count visits from AI assistants. Use first-user dimensions when you want to study user acquisition over a longer period. Mixing these dimensions in one report can produce numbers that appear inconsistent even when both reports are correct.
From signals to a channel
GA4 applies channel rules after it identifies the source and medium. For example:
A source such as chatgpt.com with medium referral usually enters the Referral channel. GA4 does not automatically create a separate AI Assistants channel in the standard default channel group. You need a custom rule if you want AI referrals separated from other referral sites.
Why values can be surprising
A visit can appear as Direct / (none) when the browser does not send a referrer and the URL has no UTM parameters. This can happen after privacy protections, redirects, copied links, mobile app transitions, or assistant-specific link handling.
Also check the reporting identity, date range, and dimension scope before comparing reports. GA4 may show different results when one report uses users and another uses sessions.
Exercise
A visitor clicks an untagged link from chatgpt.com. Which values might GA4 record, and which value determines the default channel?
Show answer
GA4 might record chatgpt.com as the session source and referral as the medium. Those values are then used to assign the default channel, usually Referral.