Skip to main content

Why Stripe and Google Analytics don't match

Stripe counts money. Analytics counts browsers that agreed and loaded a script. Ten checks to find the gap, in the order that saves the most time.

Written by
The Totems team
Published
Updated
Reading time
7 minutes

Short answer

Why do Stripe and Google Analytics show different sales?

They count different things. Stripe records every payment on its servers. Google Analytics records events from browsers that loaded your tag and, where needed, agreed to it. Refunds, time zones, currencies, test payments and repeat events add more gap. Treat Stripe as the truth for money and Analytics as a hint about paths.

Who this is for. Anyone who has two revenue numbers for the same month and needs to know which one to trust.

On this page

Two screens, two totals, one month. Before you fix anything, know what each screen is counting.

What each one sees

Stripe counts

  • Every payment that went through
  • Refunds and disputes
  • Subscription renewals with no visit
  • Payments from links you sent by hand

Analytics can miss

  • People who refuse tracking
  • Browsers that block the script
  • Buyers who never reach your thank-you page
  • Renewals, because nobody opened a page
Figure 1Stripe sees the payment. Analytics sees the browser. Neither sees both.

That is why the gap is not a bug. It is the space between "a payment happened" and "a browser told us about it".

A made-up month, line by line

Here is a fictional shop. Start at the Analytics number and walk to the Stripe number. Every step is a cause you can look for.

LineAmount
Analytics purchase revenue$7,420
Buyers who refused tracking$1,980
Renewals with no visit$1,470
Closed the page before thank-you$490
Counted twice after a page reload−$490
Test payment left in−$99
Refunds in Stripe−$990
Stripe net$9,781
Figure 2From the Analytics total to the Stripe total. Each line is one reason.Made-up example

The ten-step check

Do these in order. Stop when the gap is small enough to live with.

StepCheckFix
1Same dates in both?Use full days, not "today"
2Same time zone?Set both to one zone
3Gross or net?Compare payments before refunds in both
4Payments or payouts?Payouts are a later day and have fees taken off
5Same currency?Use one, with the day's rate
6Test payments out?Filter live only
7Renewals in Analytics?Leave renewals out of both
8Does each sale have a transaction id?Add one, so a reload can't count twice
9Does the checkout come back to your page?Set a redirect after payment
10How many refuse consent?Compare sales by country

Steps 1 to 4 cost nothing and find most gaps. Write down what you changed, so next month is easier.

Read one day by hand

Pick one day with five to ten payments. List them from Stripe. Find each one in Analytics by transaction id. You will get a small sheet like this.

Tuesday, seven payments

Found in both
4
Only in Stripe, refused tracking
1
Only in Stripe, renewal
1
Counted twice in Analytics
1
Only in Analytics
0
Figure 3One day, matched by hand. Two sales never reached Analytics.Made-up example

Now you know the reasons, not only the size of the gap.

Don't ask which number is right. Ask what each one counts.

Who gets the credit also differs

Even when the totals agree, the split may not. Google Analytics now offers data-driven and two last-click models. It removed first click, linear, time decay and position-based in November 2023. If another tool uses first click, the same sale sits in a different row. Neither is wrong.

Each step in more detail

Steps 1 and 2: dates and time zones. If your Analytics is on New York time and Stripe is on London time, the last five hours of each day sit in different days. For a month it moves a little. For one day it moves a lot. Compare whole months first.

Step 3: gross or net. Analytics records a purchase when it happens. Unless someone sends it a refund event, it never learns about the refund. Stripe does. So compare payments before refunds in both, and look at refunds on their own.

Step 4: payments or payouts. A payout on Friday holds payments from several days, less fees. It will never equal a day of sales. Use the payments list.

Step 5: currency. A €100 sale may be $108 in one place and $107 in the other, because the rates come from different times. Keep both the original amount and the rate.

Step 6: test payments. Test mode in Stripe is separate, but your website may still send a purchase event from a test. Filter it.

Google also says purchases are not sent to Analytics by default. Someone had to set that event up, so check what it really sends.

Step 7: renewals. A subscription renews at 3am with nobody on your site. Analytics sees nothing. Take renewals out of Stripe's side before you compare, or send them from your server.

Step 8: transaction ids. Google says Analytics removes repeat purchases that share one transaction id. It also says not to send an empty id, because all purchases with an empty id are then treated as one. With no id at all, we would expect a page reload to count again.

Step 9: the way back. If buyers finish on Stripe's own thank-you message, your page never loads and no event fires. Set a redirect to a page of yours.

Step 10: consent. Split sales by country. If the gap is large in places where you ask first, that is consent doing its job.

A sheet for the gap

Fill this once a month. The goal is a small "can't explain" line, not zero.

LineOctoberNovember
Refused tracking$1,980$2,050
Renewals$1,470$1,510
Never came back to the page$490$0
Counted twice−$490$0
Test payments−$99$0
Can't explain$310$120
Gap before refunds$3,661$3,680
Figure 4The same made-up shop, two months running. The gap shrinks as causes get fixed.Made-up example

In November they set a redirect, added transaction ids and filtered tests. Two causes stay, and they should. People may refuse, and renewals have no visit.

What to do with each cause

CauseFix it?How
Time zoneYesOne zone in both
Counted twiceYesTransaction id
No redirectYesSet one in Stripe
Test paymentsYesFilter
RenewalsMaybeSend from your server, or leave out of both
Refused trackingNoShow it as a known gap
Blocked scriptNoShow it as a known gap

The two "No" rows are the important ones. It's tempting to fix them with tricks. Don't. They are people's choices.

Use each tool for its own question

  • "How much did we make?" Stripe.
  • "Did refunds go up?" Stripe.
  • "Which page do people leave from?" Analytics.
  • "Which post led to this payment?" You need an id on the payment. Neither tool has it unless you put it there.

Once people agree on this list, most arguments about numbers stop.

If you must show one number

Some reports need a single line. Write it like this: "$9,781 net, from Stripe, 1 to 31 October, London time. Analytics saw $7,420 of it." One sentence, both facts, no surprise later. Anyone can follow it back.

What can go wrong

  • You "fix" the gap by adding sales by hand. Now nobody can trust either number.
  • You switch consent off to see more. That may break the law where your visitors live.
  • You compare Analytics with your bank. Fees, refunds and payout days all sit in between.
  • You chase the last 2%. The time is better spent on your next post.

When not to use Totems

If your only question is "how much did I make?", open Stripe. You don't need us. If you want to know how people move between pages, keep Analytics, because we don't replace it.

Use a tool like ours when the question is "which post led to this payment?" Totems starts from the payment, so renewals and refunds are in. Sales it can't match say Unknown. Its Stripe connection is not yet tested with a live account.

Sources

  1. Google Analytics Help: About consent modeChecked
  2. Google Analytics Help: EcommerceChecked
  3. Google Analytics Help: Transaction ids and duplicate purchasesChecked
  4. Google Analytics Help: Attribution modelsChecked
  5. Stripe: Receive events with webhooksChecked
Read as MarkdownFound a mistake? Tell us: Opened Google pages on consent, purchases and transaction ids, and fixed what we said about empty ids.
Questions

More questions.

Can't find it? Ask us.

Which number should I report?

Report money from Stripe. Use Analytics for how people moved around your site. Never mix the two in one total.

How big a gap is normal?

There is no honest single number. It depends on where your visitors live, how many refuse tracking and where your checkout sits. Measure your own gap for a month and watch if it changes.

Can Analytics show more money than Stripe?

Yes. If the thank-you page is opened twice or the event has no transaction id, the same sale can be counted again.

Does Google fill in missing sales?

It can model some data when people refuse tracking and you have enough traffic. Modeled numbers won't match payment records line by line.

Next note

No. 12

Net or gross: which sales number should you trust?

Gross is what people paid. Net is what you keep after refunds. A refund example down to the cent, and which number to use for each decision.

Payments and StripeNo. 03

How to connect Stripe payments to your content

6 minute read

Put one link in your next post and follow it. 7 days free.

Start free trialView demo