Sub topic 3
How GA4 decides a session's referral source
Prerequisites: you have a GA4 property with a web data stream, Editor or Administrator access, basic knowledge of events and sessions, and a list of your office public IP addresses.
How GA4 decides a session's referral source
GA4 sets a session's source when the session starts. It checks campaign parameters in the landing URL, such as utm_source. If none are present, it uses the referring domain. A customer who returns from a payment gateway starts a new session credited to that gateway, which splits one purchase journey in two.
Configuring the unwanted referrals list
Open Admin, select the web data stream, choose Configure tag settings, then List unwanted referrals. Add domains such as your payment gateway and sign-in provider. A match type can cover subdomains:
^(.+\.)?paypal\.com$> Hmm
The list affects only new data. It does not change past reports.
Excluding traffic without fixed IP addresses
When staff use changing addresses, such as home connections or VPNs, IP rules fail. Instead, set traffic_type from your own site code for identified staff, then match it in a data filter:
gtag('config', 'G-XXXXXXXXXX', {
'traffic_type': 'internal'
});What these settings cannot do
| Limitation | Effect |
|---|---|
| Changes are not retroactive | Past reports keep their original data |
| VPNs and dynamic IPs | IP rules miss some visits |
| Unidentified visitors | `traffic_type` only tags visitors your code recognizes |
A checklist for auditing your property
- Confirm each internal traffic rule lists current office IP ranges.
- Check that the internal traffic filter is Active.
- Review the unwanted referrals list for payment and login domains.
- Look for self-referrals in the acquisition reports.
Exercise
Exercise
A customer pays through paypal.com and returns to your site. Which setting should you change to stop this return from creating a new referral session?
Show answer
Add paypal.com to the unwanted referrals list, using a match type that covers subdomains.