Skip to content
All writing

My software knew when a member joined and not when one left

On Tuesday 11 August, a member of my gym opened the portal on their phone and turned auto-renew off. Eight seconds later they cancelled outright.

Nobody at the gym found out that day. Or the next.

Two days earlier the weekly billing job had raised their invoice and the charge had not gone through. It was still sitting there unpaid when they cancelled, which is the most useful fact in this whole story and the one that arrived last. A person whose card stopped working is not the same customer as a person who decided the gym was not worth it. The first one is a two minute phone call. The second one is a conversation you have already lost.

I got neither, because my software did not tell anyone anything had happened.

What it did tell us

Since 24 May, every new subscription at Persistence Athletics has pinged Slack and the team inbox the moment it happens. That shipped in a commit whose message reads "new-sub real-time + Monday digest + daily billing-health check", and it is wired into five separate places in the code: a member subscribing for this week, a member subscribing for next week, two different upgrade paths, and a coach assigning somebody a plan.

Five call sites for money arriving. Zero for money leaving.

That is 80 days of instrumentation pointing in one direction, and I want to be clear that it was not a decision. Nobody sat down and chose to celebrate arrivals and ignore departures. It is just that a new member is a nice thing to get a notification about, so I built it first, and then I never built the other one, because nothing forces you to.

The number that made this uncomfortable is the count. Between 16 May and today, the member portal has recorded 78 self-service churn signals from 35 different people: auto-renew switched off, or a membership cancelled. There were nine pauses on top of that. The first one of any of them that reached a human being was on Friday 14 August.

For scale: the gym carries 42 billable memberships right now.

I am deliberately not dividing those two numbers, and I would ask you not to either. 35 people is a flow across 93 days. 42 memberships is a stock today. A churn rate built by putting one over the other would be a made-up figure, and it would be a flattering one, which is how those get made.

The alert, and the traps in it

The build took a morning. The corrections took longer than the build, which is the usual ratio.

The first version gated on price: alert if the membership costs money. That would have been wrong within a day. A complimentary membership at my gym carries the catalog price of whatever plan it mirrors, with a separate flag marking it comped. So a comped member ending a comped membership looks, on price alone, exactly like a paying member walking out. The gate is now the full test, derived from the membership row itself rather than passed in by the caller: recurring, not complimentary, not prepaid, and an effective price above zero. A caller says what happened. It never gets to say who is billable.

The second correction was the dedupe. Turning auto-renew off and then cancelling is one decision expressed twice, and in the case that started all this the two clicks were eight seconds apart. Two pings for one decision teaches a team to stop reading pings. Fifteen minutes, one member, one alert.

The third was the opposite problem. A coach changing somebody's plan fires a cancel and then an assign as two separate calls. That is a member moving from Silver to Gold, which is good news, and an alert saying they cancelled is worse than no alert at all. A new billable plan within five minutes now suppresses the churn alert entirely.

The fourth is the one I would have missed if I had not gone back to the invoice. The alert carries the unpaid balance, so whoever reads it knows whether to talk about money or about training. My first filter looked for invoices in a failed state. Nothing in the system ever writes that state. A charge that does not go through leaves the invoice sitting at pending, exactly like an invoice that was raised an hour ago and is perfectly fine. If I had shipped that filter, the alert for the member I opened this post with would have said their account was clear.

What happened when I switched it on

Seven alerts have fired since Friday: four auto-renew switched off, three cancellations, seven different people. Four Silver 3x memberships at $79 a week, two Silver 2x at $69, one Gold at $89.

That is $543 a week of list price. I want to be careful with that number, because it is not $543 of lost revenue and it would be very easy to write it as though it were. It is the list price attached to seven signals, before tax, before anyone knows how many of those seven people actually leave.

Here is why that matters. I went back and asked what the portal has been doing all along, week by week. The week of 9 June: ten people. The week of 27 July: nine. The week of 3 August: seven. The week of 11 August: six. Seven alerts in the first few days is not a spike. It is roughly the rate this gym has been running at since June, and every one of those weeks was silent.

And then the part I did not expect. This morning, the member from the first paragraph came back. New membership, same plan, invoice paid. Three seconds after subscribing, they turned auto-renew off again, which fired the seventh alert on my list.

Their history reads: a comp in May, a Silver 2x cancelled six days later, a Silver 3x that ended after a week, another that ended after a week, the August one, and now this one. Six memberships, five endings, one person. They are not churning. They are buying a week at a time, which is a thing my pricing allows and my software is now interpreting as a crisis every single time.

What this does not prove

It does not prove the alert saves anyone. Zero saves so far. It has been live five days, seven alerts have gone out, and I cannot point to one person who is still a member because of it. Everything in this post is a story about a mechanism, not a result, and the result section does not exist yet.

It does not prove those 35 people left. 18 of them hold an active paying membership today. So the thing I built to detect people leaving is, on the only evidence I have, wrong about half the time. That is not a bug in the code. It is that "leaving" turned out not to be a clean event at a gym where people pause for a holiday, buy a week, come back, and switch cards.

It does not prove the alerts were read. The ledger row is written only after the send returns without an error, so I can say seven alerts were dispatched without failing. I cannot say a human opened one.

And the count of 78 is soft in both directions. It covers only what members did themselves in the portal. It excludes cancellations a coach made on somebody's behalf and the billing job's own auto-cancel after repeated failed charges, so as a count of people signalling it is a floor. But two clicks can be one decision, so as a count of decisions it is too high. I have given you the number I can actually query and told you which way it is wrong.

One more, because it changed how I count. The database column called cancelled_at on that member's row reads 16 August. They cancelled on the 11th. The column is stamped by the overnight job that finally tidies the row up, days after the person made the decision. Any churn timing computed from that column is measuring my cron schedule.

The argument against me

On 13 July I published a post on this site about putting this same software on a notification diet, because it had become the noisiest thing in my inbox. Five weeks later I have added a thing that would have pinged the team six to ten times a week across the last three weeks of portal activity, and roughly half of those pings will be about somebody who is still a member next month.

That is a fair hit and I am not going to argue my way out of it. The distinction I would make is that the diet removed alerts nobody acted on because there was nothing to do, and this adds an alert for a class of event nobody could act on because they never saw it. But the distinction only holds if people act on it. So it is on probation: if it produces no saves in 60 days, it is noise with a good story attached, and it should collapse into the Monday digest and stop interrupting anybody. I would rather write that sentence now than defend the feature later.

The second argument is that an owner who is paying attention already knows when a member is drifting. At a gym with 42 memberships, that is nearly true, and it is exactly the "nearly" that costs money.

What generalises

Go and count the alerts in your own system. Find whatever your code calls a new customer, and count how many places tell somebody about it. Then find whatever your code calls a cancellation, and count those.

I have not yet seen a small business where those two numbers are close. Revenue arriving is pleasant to build and it flatters everyone who reads it. Revenue leaving is neither, so it stays a report somebody runs at the end of the month, by which time the only honest description of the situation is that you found out too late.

The other half of the lesson is the one I did not expect to be writing. Building the alert was a morning. Discovering that my business has no clean definition of a customer leaving took the rest of the week, and it is the more useful finding. Before you instrument the bad news, you have to decide what the bad news actually is, and the data will disagree with your first answer.

If your software is loud about the good week and silent about the bad one, that is the kind of work Autosterea does.

First published on ravikantdewangan.com.

Tell us what eats your week.

A free 20-minute call. We'll show you what we would take off your plate.

Book a call