On this page
What this issue is
Many checkouts send the buyer to another domain to pay, such as paypal.com, checkout.stripe.com or a 3-D Secure page from the bank. After paying, the buyer returns to your thank-you page. The browser reports the gateway as the referrer (the site the visitor came from).
GA4 normally starts a new session when it sees a new referrer. Without an exclusion, the return trip can start a new session credited to the gateway as referral. The purchase is then attributed to paypal.com / referral instead of Google Ads, Meta or email.
Why it costs you leads or sales
The sale is real, but the credit goes to the wrong place. Your ad platforms and reports then make paid channels look weaker than they are, and you may cut budget from campaigns that actually work.
- Ad clickSession starts as google / cpc
- CheckoutBuyer is sent to the gateway
- Return from gatewayGateway is read as the referrer, new session starts
- Purchase eventCredited to paypal.com / referral
The purchase is counted, but under the wrong source.
Example: illustrative numbers showing how a gateway can take a large share of credited revenue.
How to check if your site has it
Open the traffic acquisition report
In GA4 go to Reports > Acquisition > Traffic acquisition. Change the dimension to Session source / medium.
Look for gateway domains
Search for paypal, stripe, klarna, afterpay, adyen, worldpay, sagepay, authorize.net, your bank's name and any 3-D Secure domain. Sort by purchases or revenue.
Compare to your sales
If a gateway has purchases or revenue as a referral, the exclusion is missing or incomplete.
Check the path with DebugView or a test order
Place a test order, using the gateway's test mode if available. Then check in Admin > DebugView whether the return page starts a new session with the gateway as source.
How to fix it
Open the data stream
In GA4 go to Admin > Data collection and modification > Data streams, then choose your web stream.
Open tag settings
Under Google tag, click Configure tag settings, then Show all, then List unwanted referrals.
Add each domain
Choose a match type such as Referral domain contains, and enter a value like paypal.com. Add one rule for each gateway and bank domain you found.
Save
Save the list. It only applies to new data, so past reports are not corrected.
| Gateway | Domain to add |
|---|---|
| PayPal | paypal.com |
| Stripe Checkout | stripe.com |
| Klarna | klarna.com |
| Afterpay | afterpay.com |
| Adyen | adyen.com |
| Your bank or acquirer | The domain you see in the referral report |
Use the GA4 list
Add the domains in GA4 as above. Also add your checkout domain if it differs from your storefront, for example checkout.yourstore.com, and set up cross-domain measurement if it is separate.
Same GA4 list
WooCommerce redirects to gateways such as PayPal. The exclusion is set in GA4, not in the plugin. Keep your GA4 plugin's ID the same as the stream you edit.
Optional tag setting
In your GA4 configuration tag you can set the field ignore_referrer to true. Prefer the GA4 admin list, because it is simpler and applies to the whole stream.
Admin list first
Use the GA4 list. If you cannot, see the code snippet below. Always test with a real return from the gateway.
How to confirm it's fixed
- Wait for new data, as the list does not change old reports.
- Place a new test order from an ad-style link with UTMs, using the gateway's test mode.
- In DebugView or Realtime, check that the purchase keeps the original source.
- After a few days, check that gateway domains no longer appear with purchases in Traffic acquisition.
- Compare revenue by channel against your shop or payment dashboard.
How to prevent it happening again
Review the list whenever you add a payment method, switch gateway or move to a hosted checkout. Each new provider has its own domain, and it can leak just like the old one.
- Add a gateway to the list on the same day you enable it.
- Every quarter, scan Session source / medium for new payment or bank domains.
- Keep a note of your excluded domains in your tracking documentation.
- Test a full order after any checkout change.
How FunnelGuard handles this
FunnelGuard does not check this yet. A self-referral or gateway-referral check is a possible future addition, but today it is not built, so FunnelGuard will not tell you if your unwanted referrals list is missing a gateway.
What FunnelGuard does check nearby: it runs your real checkout or lead journey on a schedule, checks each step, and checks that tracking hits reach GA4 and your ad platforms. If the funnel or a tag breaks, you get one alert with a screenshot and a likely cause. It never enters real card details and stops before payment unless your store's test mode is set up.
To watch for this yourself, put a recurring reminder in your calendar to open Traffic acquisition and look for payment domains with revenue. You can also build a saved GA4 Exploration filtered on those domains and check it monthly.
Questions people ask
Why is PayPal showing as a referral in GA4?
Buyers leave your site to pay at PayPal and come back, so the browser reports paypal.com as the referrer. GA4 can then start a new session credited to PayPal. Add paypal.com to the list of unwanted referrals to stop it.
How do I exclude payment gateways from referrals in GA4?
Go to Admin > Data streams, choose your web stream, click Configure tag settings, then Show all and List unwanted referrals. Add a rule for each gateway domain, such as paypal.com or stripe.com, and save.
Will the referral exclusion fix my old GA4 data?
No. The list only applies to data collected after you save it. Past sessions credited to a gateway stay as they are, so note the change date when comparing reports.
Why are my GA4 conversions attributed to Stripe or my bank?
The buyer returned from the payment page and GA4 treated that domain as a new traffic source. The sale is real, but the credit moves from your campaign to the gateway. Adding the domain to unwanted referrals restores the original source for new sessions.
Do I need to exclude my own domain too?
Usually not, because GA4 handles your own stream domain. If your checkout is on a different domain you own, set up cross-domain measurement instead of excluding it, so the session carries over.
How can I see which domains to exclude?
Open Traffic acquisition with Session source / medium and look for payment or bank names with purchases. In an Exploration, add Page referrer as a dimension to see the exact hostnames sending buyers to your thank-you page.
Does FunnelGuard check for missing referral exclusions?
No, not yet. It is a possible future check. FunnelGuard does run your checkout journey and check that tracking hits fire, but you need to review the GA4 unwanted referrals list yourself.
Related issues
- TRK-012GA4 missing on thank-you or order confirmation pageFix guide
- TRK-013GA4 missing on hosted checkout or booking domainFix guide
- TRK-014GA4 data stream web URL pointing to an old domainFix guide
- TRK-007GA4 config fires after the conversion event (race on fast redirects)Fix guide
- TRK-005Two GA4 measurement IDs sending to the same propertyFix guide
- TRK-001GA4 tag missing from a funnel pageFix guide