On this page
What this issue is
A referral is a visit that arrives from another website. When a customer clicks Pay, goes to paypal.com or a Stripe-hosted checkout, then comes back to your thank-you page, the browser reports the gateway as the previous site. If analytics does not ignore it, it starts a new session with the source paypal.com / referral.
- Ad clickVisit with UTMs or gclid
- Product and cartSession credited to the ad
- Pay on gatewayBuyer leaves your domain
- Return to thank-you pageNew session, source paypal.com
- Purchase eventCredited to referral
The purchase lands in the session started by the return from the gateway.
Why it costs you leads or sales
Sales still happen, but the money goes to the wrong line in your reports. Ad platforms see fewer conversions, so bidding gets less data and your return on ad spend looks worse than it is. You may cut campaigns that work.
Example: 100 real purchases from paid search. Numbers are illustrative.
How to check if your site has it
Open the traffic acquisition reportGoogle Tag Manager
In GA4 go to Reports > Acquisition > Traffic acquisition. Change the dimension to Session source / medium.
Look for gateway domains
Search for paypal, stripe, checkout.stripe.com, klarna, or your gateway's name with medium referral.
Compare purchases
If a gateway shows many purchases and few sessions before them, it is taking credit.
Make a test purchase
Use test mode or a refundable small order. Then open Admin > DebugView or Realtime and check which source the purchase carries.
How to fix it
Open data stream settings
Go to Admin > Data collection and modification > Data streams, choose your web stream, then Configure tag settings.
List unwanted referrals
Open Show all > List unwanted referrals. Add a condition such as Referral domain contains paypal.com. Repeat for stripe.com, checkout.stripe.com or your gateway's domain.
Set up cross-domain tracking
If the gateway checkout is on a domain you control (for example a checkout subdomain), add it under Configure your domains so the session carries over.
Set the return URL
Make sure the gateway returns buyers to a page on your site that has the GA4 tag installed.
Use the checkout pixel
Shopify checkout runs on its own pages. Use the Google & YouTube app or customer events so purchase tracking runs in checkout.
Add PayPal to unwanted referrals
Do this in GA4 as described above. Shopify has no separate setting for it.
Check your checkout plugin
In WooCommerce, confirm the thank-you page (order-received) loads your GA4 tag and fires purchase there.
Exclude gateways in GA4
Add paypal.com and stripe.com to unwanted referrals.
Check the Google tag
In your Google tag settings, add the domains under Configure your domains. Do not rely on a separate referral exclusion in the tag.
Preview the return
Use Preview mode and complete a test order to see the page_view source on return.
Send the purchase server-side
If you use Stripe webhooks, you can send the purchase with the original client_id and session_id stored on the order, so it joins the original session.
How to confirm it's fixed
- Make a test purchase from a link with UTMs, such as ?utm_source=test&utm_medium=cpc.
- In DebugView, the purchase event shows your UTM source, not the gateway.
- Wait one to two days, then check Traffic acquisition: the gateway no longer appears as a source.
- Compare purchases by source with your store's order count.
How to prevent it happening again
- Add every new payment method (Klarna, Apple Pay pages, bank redirects) to unwanted referrals when you enable it.
- Re-test a purchase after changing checkout apps, themes or gateways.
- Keep a short list of all domains a buyer visits during checkout.
- Review Traffic acquisition monthly for new referral domains.
How FunnelGuard handles this
FunnelGuard does not check for this yet. A payment gateway showing as a referral source is a possible future check.
What FunnelGuard does run nearby: a robot visitor follows your real journeys on a schedule, checks each step, and checks the tracking hits sent to GA4, Google Ads, Meta and other platforms. It stops before payment unless your store's test mode is set up. That tells you whether tracking tags fire, but not how GA4 later assigns the source.
Questions people ask
Why is PayPal showing as a referral source in Google Analytics?
Buyers leave your site to pay on PayPal and return afterwards. GA4 treats the return as a visit from paypal.com and starts a new session. Adding paypal.com to the unwanted referrals list stops this for new traffic.
How do I exclude PayPal from referrals in GA4?
Go to Admin > Data streams, open your web stream, choose Configure tag settings, then Show all > List unwanted referrals. Add a rule where the referral domain contains paypal.com and save.
Does Stripe cause the same problem?
Yes, if you use Stripe Checkout hosted on stripe.com. Buyers return from that domain, so add it to the unwanted referrals list. Embedded Stripe card fields on your own page do not cause it.
Will fixing it correct my old reports?
No. The unwanted referrals list only affects data collected after you save it. Earlier sessions keep the gateway as their source.
Why are my Google Ads conversions lower than my sales?
One cause is that the purchase was recorded in a new session started by the gateway return, so it has no gclid. Fixing referrals and checking your conversion setup can restore matching, though other causes exist too.
Does FunnelGuard detect payment gateways as referral sources?
Not yet. It is a possible future check. FunnelGuard does check journeys and tracking hits on a schedule, so you still need to review referral sources in GA4 yourself.
Do I need cross-domain tracking as well?
If checkout runs on another domain you control, yes. Add it under Configure your domains in GA4 so the session continues. For third-party gateways, the unwanted referrals list is the main fix.
Related issues
- TRK-313UTMs lost crossing to checkout / booking domainFix guide
- TRK-314Cross-domain _gl linker parameter not appendedFix guide
- TRK-316Cross-domain domains list missing the booking toolFix guide
- TRK-327Thank-you page on another domain starts new sessionFix guide
- TRK-318Internal links tagged with UTMs restarting sessionsFix guide
- TRK-329Direct traffic inflated by missing UTMs on emails/SMSFix guide