virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-25

checkout.stripe.com referral traffic: why it shows up and how to fix it

By Devendra Variya, co-founder of Virling. Published 2026-11-25.

checkout.stripe.com referral traffic is your own buyers coming back from paying. They leave your site for the Stripe page, pay, and are sent to your thank-you page with the payment host as the referrer. To stop it in Google Analytics 4, add checkout.stripe.com, and any other payment host you use, to the list of unwanted referrals in your web data stream. Virling leaves the Stripe hosts out by default. PayPal you have to add yourself.

Start free trial

Why a payment page ends up as the source

A browser tells the page it loads which page it came from. That is the referrer, and analytics tools use it to name a source. A hosted checkout adds a stop on another domain in the middle of a purchase:

  1. The buyer arrives from an ad, a search or a post. Your analytics records that source.
  2. They click Buy and leave for the payment page.
  3. They pay, and the payment page sends them to your site.
  4. Your thank-you page loads with the payment host as its referrer.

A tool that treats every outside host as a source now has a new candidate. The hosts to look for:

  • checkout.stripe.com is Stripe Checkout. With the hosted page, Stripe redirects the buyer to a success page on your site (source: Stripe, Customize redirect behavior).
  • buy.stripe.com is a Stripe Payment Link. By default the buyer sees a confirmation message from Stripe, so there may be no return at all. It appears once you set the link to redirect to your website (source: Stripe, After a payment link payment).
  • paypal.com, usually as www.paypal.com, appears when your checkout sends the buyer to a PayPal page and back.

A buyer who presses Back without paying can also come back with a payment host as the referrer, so these rows are not a count of sales.

When it takes the credit in GA4

Google says a session times out after 30 minutes of inactivity by default, and that the session_start event carries what decides the attribution of the session, such as UTM parameters and the referrer (source: Google, About Analytics sessions). So a buyer who takes a long time on the payment page can return to a new session, and that one starts with checkout.stripe.com as the referrer. A purchase recorded on the thank-you page is then in that new session.

If your totals are different too, start with why GA4 revenue does not match Stripe.

How to exclude payment hosts in Google Analytics 4

GA4 calls this the list of unwanted referrals, and Google names third-party payment processors as a common use for it. The steps are from Google’s help page (source: Google, Identify unwanted referrals). You need the Editor role or above on the property.

  1. In Admin, under Data collection and modification, click Data streams.
  2. Click Web, then your web data stream.
  3. At the bottom, click Configure tag settings.
  4. In the Settings section, click Show all, then List unwanted referrals.
  5. Under Include referrals that match ANY of the following conditions, choose a match type and type the host under Domain.
  6. Click Add condition for each further host, then Save.

Add only the hosts you use: checkout.stripe.com for Checkout, buy.stripe.com for Payment Links, paypal.com for PayPal. Choose a match type that also covers www.paypal.com. Keep the Stripe entries to the full host, so a real referral from another Stripe page is not hidden.

  • It is per stream. Each data stream can have up to 50.
  • You do not need your own domain on it. Google already leaves out referrals from the same domain or its subdomains.
  • It adds a parameter. Google appends ignore_referrer=true to events that match, which tells Analytics not to show the referrer as a traffic source.
  • Do not set that parameter by hand on every page. Google warns that you may lose information about your traffic sources, and that any value, even false, ignores the referrer.

How to check it worked

  1. Turn on debug mode for your browser with Tag Assistant, then open DebugView, in Admin under Data display (source: Google, Monitor events in DebugView).
  2. Open your site from a tagged link, such as ?utm_source=test&utm_medium=email, and buy in your provider’s test mode.
  3. When you land on the thank-you page, click its page_view event in DebugView to list its parameters. Look for ignore_referrer. If it is missing, check that the host you typed is the one in the referrer.
  4. Type document.referrer in the browser console on that page. An empty result means there was nothing to exclude.
  5. After some real sales, open the Traffic acquisition report and search Session source / medium for the host. Use only dates after the change.

A few rows can remain. Google gives the reason: if a person’s first session came from a domain before you listed it, a later direct visit is also credited to that domain under last non-direct click, within the lookback window.

What Virling does with a return from a payment host

When a page loads, Virling compares the referrer with a fixed list of checkout hosts. On a match it does two things. It drops the referrer, so the host is never the source of a visit. And it keeps the return in the visit that led to checkout, even when the buyer was away longer than the return threshold in Site settings. These hosts are on the list:

  • Stripe: checkout.stripe.com and buy.stripe.com.
  • Dodo Payments: checkout.dodopayments.com and test.checkout.dodopayments.com.
  • Polar: buy.polar.sh, sandbox.polar.sh, and polar.sh on paths that start with /checkout.
  • Paddle: checkout.paddle.com, buy.paddle.com and sandbox-checkout.paddle.com.
  • LemonSqueezy: any subdomain of lemonsqueezy.com.
  • RevenueCat: pay.rev.cat.
  • Creem: creem.io and www.creem.io, on paths that start with /checkout, /payment, /test/checkout or /test/payment.

The path rules for Polar and Creem need a referrer that includes the path. Browsers usually send only the host to another site, and then polar.sh or creem.io is not matched.

What Virling does not treat that way

  • PayPal. paypal.com is not on the list. Back within the return threshold, 5 minutes by default, or with another tab of your site left open and less than 30 minutes since the last event, the buyer stays in the same visit. Otherwise the return is a new visit, in the Referral channel.
  • Other Stripe hosts. Only the two above match. invoice.stripe.com and billing.stripe.com are ordinary referrers.
  • A checkout on your own domain. A subdomain of your site, such as pay.example.com, is your own site and is never a referrer. A checkout on a different domain is an ordinary referrer.
  • A return after 30 minutes without an event. The visit is over, so a new one starts, even from Stripe. The referrer is still dropped, so it is Direct, under checkout return.
  • UTM tags on the return URL. If the success URL carries UTM tags that differ from the visit’s, a new visit starts with those tags. Leave them off.

For PayPal or any other host, open Site settings and add the domain under Same-visit domains. paypal.com covers its subdomains too. Returns are then handled as for Stripe, and clicks to that domain no longer count as exits. To test a landing URL and referrer, use the free traffic source checker. It knows the built-in hosts, not the domains you add.

A made-up example

This buyer is invented. At 10:00 they open a newsletter link tagged utm_medium=email. At 10:05 they leave for checkout.stripe.com, go to find a card, pay at 10:43 and land on the thank-you page at 10:44.

  • GA4 with no exclusion. More than 30 minutes have passed, so the thank-you page starts a new session with checkout.stripe.com as its referrer.
  • GA4 with the exclusion. The referrer is ignored. With no new source, last non-direct click can credit the session to the newsletter.
  • Virling. The return at 10:44 is a new visit, marked Direct. The payment at 10:43 came before it, so it is credited to the Email visit from 10:00, as long as the visitor ID was passed into checkout.

Fix the link as well as the report

Excluding a host cleans up the source list. It does not connect a payment to a visit. Virling credits a payment by the visitor ID that checkout carried, using visits that started before the payment, so the return page does not decide the sale.

Frequently asked questions

Why is checkout.stripe.com a referral source in my analytics?

The buyer left your site to pay on Stripe and was sent back to it. The browser passed along the page they came from, so your thank-you page loaded with checkout.stripe.com as its referrer. If the return starts a new session, that session is credited to the payment page.

How do I exclude checkout.stripe.com in GA4?

In Admin, open Data streams, choose your web stream, then Configure tag settings, Show all and List unwanted referrals. Add checkout.stripe.com as a domain and save. Google allows up to 50 unwanted referrals per data stream, and you need the Editor role or above.

Does excluding the payment host delete old referral rows in GA4?

Do not expect it to. The rule adds a parameter to events as your site sends them. Google also explains that a person whose earlier session came from the excluded domain can still be credited to it when they return directly, inside the lookback window.

Does Virling count checkout.stripe.com as a source?

No. A return from checkout.stripe.com or buy.stripe.com never becomes the source of a visit, and it continues the visit that led to checkout while that visit is live. After 30 minutes without an event it starts a new visit, recorded as Direct unless the return URL carries tags.

Does Virling treat PayPal the same way?

Not by default. PayPal is not on the built-in list, so a return from it that starts a new visit is counted as Referral. Add paypal.com under Same-visit domains in Site settings, and returns from it and its subdomains are handled like returns from Stripe.

Credit the channel, not the payment page

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo