Skip to content
FunnelGuard

Fix guide by FunnelsGuard

PayPal or Stripe showing as referral source in GA4: how to fix

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

How the gateway steals the credit
  1. Ad clickVisit with UTMs or gclid
  2. Product and cartSession credited to the ad
  3. Pay on gatewayBuyer leaves your domain
  4. Return to thank-you pageNew session, source paypal.com
  5. 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.

Purchases by source in GA4Example numbers
Purchases by source in GA4 (example)Paid search (broken): 40 purchases; paypal.com referral (broken): 60 purchases; Paid search (fixed): 100 purchases; paypal.com referral (fixed): 0 purchases0387740601000Paid search (broken)paypal.com referral (…Paid search (fixed)paypal.com referral (…purchases

Example: 100 real purchases from paid search. Numbers are illustrative.

How to check if your site has it

Check your reports
  1. Open the traffic acquisition reportGoogle Tag Manager

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

  2. Look for gateway domains

    Search for paypal, stripe, checkout.stripe.com, klarna, or your gateway's name with medium referral.

  3. Compare purchases

    If a gateway shows many purchases and few sessions before them, it is taking credit.

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

Fix in GA4
  1. Open data stream settings

    Go to Admin > Data collection and modification > Data streams, choose your web stream, then Configure tag settings.

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

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

  4. Set the return URL

    Make sure the gateway returns buyers to a page on your site that has the GA4 tag installed.

Platform notes
  1. 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.

  2. Add PayPal to unwanted referrals

    Do this in GA4 as described above. Shopify has no separate setting for it.

How to confirm it's fixed

After the change
  • 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

Keep it clean
  • 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.

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.