Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Referral exclusion for payment gateways in GA4: how to fix it

TRK-037High impactCould addBy FunnelGuardPublished Updated
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.

How a gateway steals the source
  1. Ad clickSession starts as google / cpc
  2. CheckoutBuyer is sent to the gateway
  3. Return from gatewayGateway is read as the referrer, new session starts
  4. Purchase eventCredited to paypal.com / referral

The purchase is counted, but under the wrong source.

Revenue by source before and after exclusionExample numbers
Revenue by source before and after exclusion (example)Paid search (before): 20 % of revenue; paypal.com referral (before): 30 % of revenue; Paid search (after): 45 % of revenue; paypal.com referral (after): 0 % of revenue017342030450Paid search (before)paypal.com referral (…Paid search (after)paypal.com referral (…% of revenue

Example: illustrative numbers showing how a gateway can take a large share of credited revenue.

How to check if your site has it

Look for gateways in your reports
  1. Open the traffic acquisition report

    In GA4 go to Reports > Acquisition > Traffic acquisition. Change the dimension to Session source / medium.

  2. 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.

  3. Compare to your sales

    If a gateway has purchases or revenue as a referral, the exclusion is missing or incomplete.

  4. 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

Add the gateways to the unwanted referrals list
  1. Open the data stream

    In GA4 go to Admin > Data collection and modification > Data streams, then choose your web stream.

  2. Open tag settings

    Under Google tag, click Configure tag settings, then Show all, then List unwanted referrals.

  3. 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.

  4. Save

    Save the list. It only applies to new data, so past reports are not corrected.

Common gateway domains to check (confirm against your own reports)
GatewayDomain to add
PayPalpaypal.com
Stripe Checkoutstripe.com
Klarnaklarna.com
Afterpayafterpay.com
Adyenadyen.com
Your bank or acquirerThe domain you see in the referral report
Platform notes
  1. 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.

How to confirm it's fixed

After saving
  • 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.

Habits that help
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.