Guide · Tracking and analytics
PayPal or Stripe showing as a referral in GA4: how to fix unwanted referrals
By The Microployed teamUpdated 3 min read
The short answer
When a shopper leaves your site to pay on PayPal or a hosted Stripe page and then returns to your confirmation page, GA4 can record the payment site as the referrer and give it credit for the sale. You fix it by adding those domains under Admin, Data streams, Configure tag settings, List unwanted referrals. The change only affects data collected after you save it.
The steps, about 10 minutes
Step 1: Find the payment domains
Open Reports > Acquisition > Traffic acquisition, switch the table to Session source / medium and note every payment provider domain that shows up as a referral.
Step 2: Open your web data stream
Go to Admin, then under Data collection and modification click Data streams, click Web and open your web data stream.
Step 3: Open the unwanted referrals setting
Click Configure tag settings at the bottom of the stream details, click Show all in the Settings section, then click List unwanted referrals.
Step 4: Add each payment domain
Choose a match type, enter the first domain, and use Add condition for each additional domain, such as paypal.com and checkout.stripe.com.
Step 5: Save the list
Click Save. The change applies to data collected from this point on.
Step 6: Place a tagged test order
Visit your store from a link with a recognizable UTM source, pay with PayPal or Stripe, and check that the order is credited to your test source once it reaches your reports.
Why PayPal and Stripe show up as referral traffic
Payment domains appear as referrals because the shopper's browser leaves your site to pay and then comes back from another domain. When someone pays on PayPal or on the hosted Stripe Checkout page at checkout.stripe.com, GA4 sees a visitor arriving on your confirmation page from that domain and can record it as the session's source. The purchase then lands under something like paypal.com / referral instead of the ad, email or search visit that actually brought the shopper in.
Google's help article on unwanted referrals uses third-party payment processors as its main example of traffic you don't want reported this way, and Stripe's own GA4 setup guide for hosted Checkout tells you to add checkout.stripe.com to your exclusion list before you add any other tracking. The cost to you is quiet but real: a payment domain looks like your best-converting traffic source, while the campaigns you pay for look weaker than they are.
How to check whether it's happening to you
The quickest check is the Traffic acquisition report, viewed by source and medium. Open Reports > Acquisition > Traffic acquisition, use the drop-down at the top of the first column to switch from Session default channel group to Session source / medium, and sort by purchases or your purchase key event.
Look for domains that belong to a payment provider rather than a site that links to you. PayPal and Stripe are the usual ones, but buy-now-pay-later providers and card verification pages can show up as well, so write down every domain exactly as GA4 spells it. A referral with only a handful of sessions and an unusually high number of purchases is the giveaway, because genuine referring sites rarely convert like that.
What the unwanted referrals setting actually does
The setting tells GA4 not to treat matching domains as a new traffic source, so the session keeps the source it started with. Behind the scenes, GA4 adds ignore_referrer=true to events whose referrer matches one of your conditions. Conditions are checked on every page where your Google tag runs, they use OR logic so any single match is enough, and each web data stream can hold up to 50 of them. You'll need Editor access or higher on the property to change the list.
Google also documents setting ignore_referrer by hand in a gtag('config', ...) call, but it warns against doing that on every page because you'd throw away real referral data along with the bad. For most stores the data stream setting is the only change needed.
What this fix won't change
Listing a domain isn't retroactive, so sessions recorded before you saved the change keep their payment-domain attribution. Compare periods that begin after the change, or your reports will show a confusing mix for a while. Because GA4 uses last non-direct click attribution, a shopper whose earlier session came through PayPal can also have a later direct visit credited to PayPal, which is another reason the old numbers fade out gradually instead of disappearing.
It also won't help if purchases aren't being recorded at all. If GA4 shows zero sales rather than misattributed ones, start with why GA4 shows zero conversions or check the purchase tag itself with Google Tag Manager preview mode.
When the checkout moves between domains you own, such as a store on one domain and a cart on another, the right tool is cross-domain measurement rather than this list. GA4 already ignores referrals between domains in your cross-domain list when the _gl linker parameter is on the page, and it never counts your own domain or its subdomains as a new referral, so there's no need to add your own site here.
How to confirm the fix worked
A tagged test order is the cleanest proof. Start from a link to your store with a UTM source you'll recognize, such as ?utm_source=referraltest&utm_medium=test, add something to the cart and pay with PayPal or Stripe. Once that day's data reaches your standard reports, the order should appear in Traffic acquisition under your test source rather than under the payment domain.
Over the next few weeks, the payment domains' share of purchases should drop toward zero while paid, email and organic channels pick up the sales they were missing. If a payment domain keeps appearing, compare its exact spelling in the report with what you entered, and check the match type you chose, since a contains match on the main domain catches subdomains that an exact match would miss.
Short on time? Hand this one off.
Post it as a small job and a pro who knows Google Analytics 4 picks it up, with the price set before anyone starts. Businesses in the beta get credits to try it.
Post this as a job on MicroployedThe next level up
With the referral fixed, you can make sure purchases are recorded even when shoppers never see the thank-you page
Fixing referrals gives the right channel credit, but a purchase recorded in the browser still depends on the shopper landing on your confirmation page with the tag loaded. A pro can send each purchase to GA4 from your server when the payment completes, linked to the shopper's GA4 client ID, so closed tabs and failed redirects stop costing you sales data.
Post the server-side purchase jobQuestions people ask
Does listing unwanted referrals fix my old GA4 data?
No. The setting only applies to data collected after you save it, so sessions already credited to PayPal or Stripe stay that way in your reports.
Why does checkout.stripe.com show up as a referral?
With hosted Stripe Checkout, the shopper pays on a Stripe page and is sent back to your success page, so GA4 sees Stripe as the referring site. Stripe's GA4 guide tells you to add checkout.stripe.com to your exclusion list for this reason.
Should I add my own domain to the unwanted referrals list?
No. GA4 doesn't treat your own domain or its subdomains as a new referral, and traffic between domains in your cross-domain list is already handled when the _gl linker parameter is present.
How many domains can I list as unwanted referrals in GA4?
Up to 50 per web data stream. Conditions use OR logic, so a referrer only has to match one of them.
Sources
Checked against these pages on .