Sub topic 9
How GA4 Decides a Session's Referral Source
This chapter assumes that you understand GA4 events and sessions, can read traffic-source dimensions, and know what UTM parameters are. A UTM parameter is a label added to a URL, such as utm_source=newsletter, that identifies a marketing campaign.
The signals GA4 uses
When a user starts a session, GA4 examines the information available with the first page view. The main signals are:
- Campaign parameters in the URL, such as
utm_source,utm_medium, andutm_campaign. - The referring URL, also called the referrer. This is the page that linked to your site.
- Whether the browser supplied no campaign or referrer information.
Campaign parameters generally provide the clearest attribution. If a user clicks a link containing utm_source=partner, GA4 can classify the session using that campaign information. If no campaign parameters exist but another website linked to the page, GA4 can classify the visit as a referral.
If neither signal is available, GA4 commonly classifies the session as direct. Direct traffic does not necessarily mean that a person typed the URL. It can also result from missing referrer data, privacy settings, shortened links, apps, or untagged documents.
| Arrival information | Typical session source classification |
|---|---|
| `utm_source=google&utm_medium=cpc` | google / cpc |
| Link from `example.org` without campaign parameters | example.org / referral |
| No campaign parameters and no referrer | direct / (none) |
How a referral becomes a session source
A referral is a visit that follows a link from another domain. For example, a visitor clicks a link on review-site.example and lands on your website. If the URL has no campaign labels, GA4 may record:
- Session source:
review-site.example - Session medium:
referral
GA4 uses the session's source dimensions to describe where that session began. These dimensions are different from first-user source dimensions, which describe how GA4 first acquired the user. A returning user's current session can have a different source from the source that originally acquired the user.
The basic decision path looks like this:
Why self-referrals are a problem
A self-referral occurs when your own domain appears as the referral source. It often indicates a broken measurement setup rather than a real acquisition source.
Common causes include:
- A payment provider sends the user back without being configured as an unwanted referral.
- A login or authentication domain interrupts the user journey.
- Cross-domain measurement is missing or configured incorrectly.
- A redirect removes campaign parameters.
- The user moves between domains without preserving the original session context.
A self-referral can make one user journey appear to contain a new acquisition source. It may also split conversions between multiple sessions or make a payment provider appear to generate traffic.
How GA4 handles unwanted referrals
The unwanted referrals list tells GA4 to ignore selected referring domains as referral sources. Payment gateways, identity providers, and other domains that users visit as part of your own conversion process are common candidates.
When a matching domain sends a user back, GA4 does not treat that domain as a new referral source. The original source can remain associated with the journey, depending on the session and measurement setup. This setting changes attribution for future collected data. It does not repair historical reports.
Use the unwanted referrals list only for domains that are part of the intended user flow. Adding genuine publishers or partners can hide valuable acquisition data.
Common attribution errors
Check these issues before changing GA4 settings:
- Tag campaign links consistently. Missing
utm_mediumor misspelled parameter names can produce unexpected classifications. - Keep campaign parameters through redirects and payment steps.
- Configure cross-domain measurement when a journey legitimately spans related domains.
- Inspect the actual referring URL in the browser and in DebugView rather than relying only on reports.
- Compare session source with first-user source before deciding that attribution is incorrect.
Exercise
A visitor arrives from news.example with no UTM parameters. What session source and medium should you normally expect?
Show answer
The session source should normally be news.example, and the medium should be referral, unless the domain is excluded or the browser does not provide referrer information.