Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

PayPal or Stripe Showing as a Referral in GA4? How to Fix Payment Gateway and Unwanted Referrals

Your top source for purchases is paypal.com, or checkout.stripe.com, or a bank's verification page. This guide explains why payment gateways appear as referrals in GA4, how to list them as unwanted referrals, how to find all the domains involved, and how to check the fix.

The EndFrame Team5 min read

You open the purchase report in GA4 and one of the top sources is paypal.com / referral. Or checkout.stripe.com, or klarna.com, or a bank's 3-D Secure verification page you have never heard of. Those are not marketing channels. They are the last site the buyer visited before landing on your order confirmation page, and GA4 is treating them as the source. This guide explains why it happens, how to stop it with GA4's unwanted referrals setting, how to find every domain involved, and what the fix does and does not change.

Why payment gateways steal the credit

A typical hosted checkout sends the buyer away from your site to pay, then redirects them back to a confirmation page. The browser sends the payment page as the referrer on that return visit. GA4 reads the referrer as a new traffic source. If the buyer spent longer than your session timeout (30 minutes by default) on the payment step, the return starts a new session with paypal.com / referral as its source. Even within the same session, the referral becomes a touchpoint in the attribution path, sitting right before the purchase, so a last click model hands it the full credit and data-driven attribution gives it a share.

The result is that the campaign which actually brought the buyer, whether paid search, email or an affiliate, loses credit for the sale at the very last step. In Google Ads comparisons, this is one of the documented reasons GA4 credits fewer conversions to Google Ads: our guide to why GA4 and Google Ads conversions do not match covers the others.

Find every domain involved

Before changing settings, list the domains. In Reports, open Traffic acquisition, set the primary dimension to Session source, and filter to medium referral. Add the purchase key event as a metric and sort by it. Anything that is a payment step, not a site that sends you buyers, is a candidate. Common examples:

  • Wallets and hosted checkouts: paypal.com, checkout.stripe.com, pay.google.com.
  • Buy now, pay later providers, such as klarna.com or the regional domains of similar providers.
  • Payment service providers whose hosted pages run on their own domain, which varies by provider and region.
  • Bank authentication pages for 3-D Secure, which often appear as unfamiliar bank or card scheme domains.
  • Other third-party steps in your funnel: booking engines, identity or login providers, and document signing tools.

Only list domains that are a step in your own funnel. A blog or partner that genuinely sends buyers should stay a referral, even if the name looks unfamiliar.

How to list unwanted referrals

  1. 1Go to Admin, Data collection and modification, Data streams, and select your web stream.
  2. 2Open Configure tag settings, click Show all under Settings, and choose List unwanted referrals.
  3. 3Add a condition for each domain, with a match type such as contains or exactly matches. contains paypal.com covers www.paypal.com and its subdomains.
  4. 4Add the remaining domains as further conditions. They are evaluated with OR logic, and Google allows up to 50 per stream.
  5. 5Save. No tag change is needed: the Google tag picks up the setting.

Behind the scenes, GA4 appends ignore_referrer=true to events whose referrer matches one of your conditions, and those events no longer start a new referral touchpoint. The visit is attributed to whatever source the buyer had before, which is what you want.

Why cross-domain tracking is not the answer for gateways

A common first instinct is to add paypal.com to the cross-domain list. That does not help. Cross-domain measurement only works when the destination runs your Google tag and can read the _gl parameter, and you cannot put your tag on a payment provider's hosted page. The link decoration would be added on the way out, ignored by the gateway, and lost on the way back. Cross-domain settings are for domains you own and tag; unwanted referrals are for domains you pass through but do not control. If you use a checkout that runs on your own second domain, such as a separate store domain, that is a cross-domain case, and you may need both settings.

Some setups avoid the problem entirely. Embedded payment fields that keep the buyer on your page, or payment flows that open in a popup and close back to the original tab, never produce a return visit with a foreign referrer. If your platform offers an embedded option, it removes this class of attribution error as well as some friction for the buyer. Where a redirect is unavoidable, for example bank authentication, the unwanted referrals list is the right tool.

What the fix does not do

  • It is not retroactive. Purchases already credited to paypal.com stay that way. Annotate the date you made the change so later comparisons account for it.
  • It does not change totals. The number of purchases stays the same; only the credit moves.
  • It does not stop a long payment step from starting a new session. If the buyer takes longer than the session timeout, the return is still a new session; the setting only prevents the gateway from becoming its source. Attribution reports, which look across sessions within the lookback window, can then credit the earlier campaign.
  • It does not fix cross-domain journeys between sites you own. For those, set up GA4 cross-domain tracking so the session continues.

Check the fix worked

Run a test purchase in a private window with a tagged URL, so you know the expected source. Use your gateway's sandbox if your platform supports it. In DebugView, confirm the purchase event fires on the confirmation page, and in Realtime confirm the source is your tagged campaign rather than the gateway. Our guide to testing tracking with GA4 DebugView covers the setup. Then, after a few days, check that payment domains have dropped out of the referral report for new data.

Keep an eye on the list over time. Payment providers add regional domains, banks change their authentication pages, and new steps get added to a funnel without anyone telling the analytics owner. A monthly look at referral sources sorted by purchases is enough to catch a new gateway domain before it distorts a quarter of reporting.

A more robust approach for purchases

Purchase tracking that depends on a confirmation page in the browser has a second problem beyond referrals: some buyers never return to it. They close the tab after paying, or the gateway's redirect fails. Sending the purchase from your server when the payment provider confirms the order avoids both issues, as long as the event carries the visitor's client_id and session_id so GA4 attaches it to the right session. Our guide to sending server-side conversions to GA4 explains how. EndFrame stores the visitor's campaign data on arrival and can forward the confirmed conversion to GA4 through the Measurement Protocol, so the original source travels with it.

Frequently asked questions

Where is the referral exclusion list in GA4?

GA4 calls it List unwanted referrals. Go to Admin, Data collection and modification, Data streams, select your web stream, open Configure tag settings, click Show all under Settings, and choose List unwanted referrals. It replaced the referral exclusion list from Universal Analytics.

Will excluding PayPal change my total number of purchases?

No. Excluding a referral changes which channel receives credit, not the total number of key events. Purchases that were credited to paypal.com will be credited to the channel that brought the buyer instead.

How many unwanted referral domains can I add in GA4?

Google allows up to 50 unwanted referral conditions per web data stream, evaluated with OR logic. One condition using contains with a root domain, such as paypal.com, usually covers that provider's subdomains, so 50 is enough for most sites.

Should I add my own domain to the unwanted referrals list?

Usually not. GA4 automatically ignores referrals from the domain the tag runs on and its subdomains, and traffic carrying the cross-domain _gl parameter. If your own domain still appears as a referrer, fix the cross-domain or cookie setup rather than hiding it.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading