A few weeks ago I wrote about the revenue events most SaaS setups forget to send: renewals, refunds and the purchases that only the server sees. A reader replied with the obvious gap: what about the renewal that fails? A card expires, the charge is declined, and the subscription goes past_due. No purchase event fires, because there was no purchase. The account can stay active in your app while the money has stopped.
That's a hole you can't see on a chart, because a missing event looks exactly like a quiet day. So I simulated it.
The short version:
- In the simulation, about 8% of renewals failed on the first try, and retries won back 59 to 69% of them. The rest were lost, and in this model they were 35 to 49% of all churn.
- A "renewed" event fired whenever a billing period rolls over overstated the year by 2.0 to 2.8%. It counted every lost renewal as revenue.
- An event on each successful payment matched the payment provider to the cent, but on its own it never told you who stopped paying.
- If nothing ends access after the last retry, the accounts that still look active were worth 14 to 20% of real MRR by December.
The setup
This is a seeded simulation, not data from a real business. Every number below comes from the parameters in this table, which are my assumptions, chosen to be plausible for a small SaaS. Change them and the numbers change. The point is the shape of the errors, not their exact size.
| Parameter | Value in the simulation |
|---|---|
| Plans | $19 and $49 per month |
| New paying customers | 80 per month, January to December 2026 |
| Customer cancels before a renewal | 4% per renewal |
| Renewal charge fails on the first try | 8% |
| Retries after a failure | day 3, day 7 and day 14 |
| Chance each retry succeeds | 30% |
| After the last failed retry | the subscription is lost |
The retry schedule is a simplification. Real payment providers let you configure it: Stripe, for example, has Smart Retries, which it turns on by default for new accounts and which picks retry times for you. Its subscription docs also spell out the part that matters here: after the retries end, your settings decide whether the subscription stays past_due or changes to unpaid or canceled. So "lost" in the simulation is a decision someone made in a settings page, or didn't.
The heart of the simulation is a loop over each customer's renewals:
while (d := next_month(d)) <= END: if rng.random() < P_CANCEL: break # customer cancels if rng.random() >= P_FAIL: # renewal charged fine inv.append([cid, d, price, 'paid', d, 'renewal']); continue paid = next((d + dt.timedelta(days=r) for r in RETRY_DAYS if rng.random() < P_RECOVER), None) # first retry that works if paid is None: # all retries failed inv.append([cid, d, price, 'failed', None, 'renewal']); break if paid > END: # still retrying on Dec 31 inv.append([cid, d, price, 'retrying', None, 'renewal']); break inv.append([cid, d, price, 'paid', paid, 'recovered']) The output is the payment provider's view of the year: one invoice row per billing period with its status and payment date. That's the ground truth every tracking setup is compared with. I ran the whole year with three seeds (42, 7 and 2026).
What happened to the failed renewals
| Seed 42 | Seed 7 | Seed 2026 | |
|---|---|---|---|
| Renewals due | 4,160 | 4,056 | 4,011 |
| Failed on the first try | 338 (8.1%) | 337 (8.3%) | 318 (7.9%) |
| Won back by a retry | 197 | 220 | 218 |
| Lost after all retries | 139 | 114 | 96 |
| Still retrying on Dec 31 | 2 | 3 | 4 |
| Retry paid in a later month than the renewal date | 22 | 27 | 27 |
| Lost renewals as a share of all churn | 49% | 39% | 35% |
Two things stand out. First, retries matter: they recovered 59 to 69% of the failures that were settled by the end of the year. Second, the failures that stayed lost were a large share of churn. Those 35 to 49% follow directly from my assumptions (4% cancellations vs. 8% failures, a third of them lost), so don't quote them as a benchmark. But they show that in a business like this, a big part of churn can come from people who never decided to leave. Their card just stopped working.
Four tracking setups, one year
Then I ran the same year through four ways a product might send revenue to analytics:
- Thank-you page only. A purchase event fires after the first checkout. Nothing on renewals.
- A "renewed" event at every period rollover. The app fires it when a new billing period starts, for example from a nightly job or a subscription-updated hook, without checking whether the charge went through.
- A server event on each successful payment, dated by the payment. It fires when the provider confirms the money, on the day the money arrived.
- The same payment events, dated by billing period. The amount goes to the month the subscription period started, even if a retry paid it later.
| Setup (seed 42) | Revenue reported | vs. provider cash |
|---|---|---|
| Provider: cash collected in 2026 | $165,341 | — |
| 1. Thank-you page only | $31,980 | −80.7% |
| 2. "Renewed" event at period rollover | $169,910 | +2.8% |
| 3. Event on each successful payment | $165,341 | ±0 |
| 4. Same, dated by billing period | $165,341 for the year, but months move | ±0 for the year |
Across the three seeds, setup 1 missed 80.2 to 80.7% and setup 2 overstated by 2.0 to 2.8%. Setup 1 is the problem from the earlier article. Setup 2 is today's problem, and it's sneakier, because the number looks better than reality and nobody complains about that.
Where does setup 2's extra money come from? Exactly from the renewals that failed and stayed failed: 139 of them in seed 42, worth $4,471, plus the two still in their retry window. The "renewed" event said yes every time. The provider said no.
Setup 4 is fine for the year but not for each month. When a retry pays a renewal on the 3rd of the next month, which month is it? Dated by billing period, the money belongs to the earlier month, which means a month you already closed changes after the fact. In seed 42 the two views differed by up to $185 in a single month, and December came out $106 short by billing period because some December renewals were still failing or retrying. Neither view is wrong. They answer different questions ("what came in?" vs. "what was earned for this period?"). Pick one per report, label it, and don't mix them on one chart.
The quiet part: active accounts that stopped paying
Revenue charts are only half the story. The other half is the count everybody watches: active customers and MRR.
Suppose your app ends access when someone cancels, but nothing ends it when the last retry fails. Maybe the provider leaves the subscription past_due, and your app only listens for cancellations. In the simulation, that's what the accounts at the end of the year looked like:
| Dec 31 (seed 42) | Accounts | Monthly list price |
|---|---|---|
| Paying, renewal on time or recovered | 675 | $22,605 (real MRR) |
In the retry window (past_due) | 2 | $98 |
| All retries failed, access never ended | 139 | $4,471 |
Count every account with access as "active" and MRR looks $4,569 higher than it is. That's 20% in seed 42, 18% in seed 7 and 14% in seed 2026. It builds up slowly, a handful of accounts per month, which is exactly why nobody notices.
Note the two accounts in the retry window: they should still have access. A failed charge on day 0 isn't churn yet, and cutting someone off before the retries finish turns a fixable card problem into a lost customer. The mistake is not "past_due counts as active". The mistake is having no end date for it.
The events that make this visible
What fixed it in the simulation was sending the failures as events, not only the successes. The payment provider already knows everything. The job is to forward it. With Stripe, for example, the subscription webhooks page lists invoice.paid, invoice.payment_failed and customer.subscription.updated. Other providers have their own names for the same moments.
| Moment | Event to send | Why |
|---|---|---|
| A renewal charge succeeds | renewal_paid with amount, currency, billing period, invoice ID | The only revenue event for renewals; dated by payment |
| A charge fails | renewal_failed with attempt number and invoice ID, no amount | Shows failures as they happen, before they become churn |
| A retry succeeds | renewal_paid with recovered: true | Tells you what retries are worth |
| Retries end without payment | subscription_ended with reason: payment_failed | Separates lost cards from cancellations |
| Customer cancels | subscription_ended with reason: cancelled | The churn people actually chose |
Two rules from the earlier article still apply. Send these from the server, not the browser, because nobody is on your site when a renewal is charged at 3 a.m. And make every event idempotent with the invoice ID, because webhooks get delivered more than once.
The failed event deliberately carries no amount. It's not revenue, and if it ever gets summed by mistake it adds zero.
A monthly check that catches it
Events are only as good as the code that sends them, so the last piece is a check you run once a month. Export the paid invoices from your payment provider, export the revenue events from your analytics, and compare. This is the whole script:
import csv, collections, datetime as dt, sys month = lambda s: s[:7] inv = list(csv.DictReader(open('provider_invoices.csv'))) ev = list(csv.DictReader(open('analytics_revenue_events.csv'))) acc = {r['customer']: r['has_access'] for r in csv.DictReader(open('app_accounts.csv'))} cash, seen = collections.Counter(), collections.Counter() for r in inv: if r['status'] == 'paid': cash[month(r['paid_on'])] += int(r['amount']) for r in ev: seen[month(r['date'])] += int(r['amount']) print('month provider analytics diff') for m in sorted(cash): print(f'{m} {cash[m]:>8} {seen[m]:>9} {seen[m]-cash[m]:>+5}') today = dt.date.fromisoformat(sys.argv[1] if len(sys.argv) > 1 else '2026-12-31') last_paid = {} for r in inv: if r['status'] == 'paid': last_paid[r['customer']] = max(last_paid.get(r['customer'], ''), r['paid_on']) stale = [c for c, a in acc.items() if a == 'yes' and (today - dt.date.fromisoformat(last_paid[c])).days > 45] print(f'{len(stale)} accounts with access and no successful payment in 45 days, e.g. {stale[:3]}') Run against setup 2 (the "renewed at rollover" events) in seed 42, it prints:
month provider analytics diff 2026-01 2570 2570 +0 2026-02 5004 5042 +38 2026-03 7553 7727 +174 2026-04 9876 10140 +264 2026-05 12025 12256 +231 2026-06 13455 14119 +664 2026-07 15631 15715 +84 2026-08 16808 17390 +582 2026-09 18157 18897 +740 2026-10 20214 20608 +394 2026-11 21337 22014 +677 2026-12 22711 23432 +721 131 accounts with access and no successful payment in 45 days, e.g. ['c0003', 'c0005', 'c0007'] The analytics side is never below the provider and grows month after month. That pattern alone says "we count something the provider didn't collect". The second check finds the accounts: 131 of the 139 lost renewals. The other 8 failed in the last weeks of December, so their last payment was less than 45 days ago, and next month's run will list them. The 45 days is one billing month plus the 14-day retry window. Use your own plan length and retry schedule.
You don't need a script for a first look. Export both lists as CSV, one row per billing period, and compare them in a diff tool that matches rows by key instead of by line. I dropped the two exports from seed 42 (4,979 paid invoices and 5,120 "renewed" events) into the FindUtils CSV Diff with customer + period_start as the key. It listed 141 rows only in the analytics file: the 139 lost renewals and the 2 still retrying, no changed rows, and 4,979 unchanged. The page says the files are compared in your browser and not uploaded, which matters when the file is a customer list. If your event export has duplicate webhook deliveries, remove them first by invoice or event ID, for example with the FindUtils CSV Dedupe.
A short checklist
- Send a failed event for every failed charge, with the attempt number and no amount.
- Send revenue only when the provider confirms the money. Never from a schedule.
- Mark recovered payments, so you know what your retry settings are worth.
- Record why a subscription ended: a cancellation and a failed card need different fixes (a survey vs. a card-update email).
- Decide what happens after the last retry, write it down, and make sure your app follows the same rule as your payment provider.
- Once a month, compare analytics revenue with the provider's paid invoices, and list accounts with access but no recent payment.
Where DataVisitors fits
DataVisitors is the privacy-friendly, cookieless analytics tool from the team behind FindUtils. It's waitlist-only right now. Its revenue page describes revenue events sent through a supported integration, revenue shown per currency, and first-click vs. last-click attribution for a goal. It also says plainly that revenue reports depend on the events you send and that it isn't an accounting ledger or a replacement for your payment provider. That's the right expectation for any analytics tool, and it's why the monthly check above exists. Server events like a failed renewal would go through its HTTP API. If that sounds useful, the waitlist is open.
What this doesn't show
- Real failure and recovery rates. The 8% and 30% are assumptions. Your provider's dashboard has your real numbers, and they're worth a look.
- Annual plans, dunning emails, card updaters. All of these change the shape. Annual plans fail less often but each failure costs more.
- Refunds and disputes. They were covered in the earlier article and are left out here to keep the effect clear.
- Taxes and currencies. Every amount here is a single currency with no tax.
The pattern holds whatever the numbers: a failed renewal is an event too. If you only send the successes, your chart can't show the money that stopped, and the accounts that stopped paying keep looking like customers.
Need help with a project? The team behind FindUtils takes on freelance work on Upwork, including a fast REST API or back-end service built in Go, for example a webhook service that records every renewal attempt.

