---
title: "A retention analysis by signup month and plan"
description: "A cohort retention analysis from your Stripe data. Ana builds logo and revenue cohorts by month and plan, shows every rule she used and explains the results."
url: https://prosyo.com/ai-agents/use-cases/ana-retention-cohorts/
type: use_case
published: 2026-11-26T11:37:05+00:00
updated: 2026-11-26T11:37:05+00:00
author: "Shubham K."
language: en-US
---

# A retention analysis by signup month and plan

> A cohort retention analysis from your Stripe data. Ana builds logo and revenue cohorts by month and plan, shows every rule she used and explains the results.

“What is our retention?” sounds like a question with one number for an answer. It isn’t. Retention by count of customers tells a different story from retention by revenue. Annual plans make the first eleven months look perfect. Upgrades hide losses. One bad month of signups after a price change drags the average down and nobody notices which month it was. A single retention figure on a slide usually hides the thing you most need to know.

Ana, Prosyo’s data analyst, builds a proper cohort retention analysis from your billing data. She groups customers by the month they started paying and by plan, tracks each group month by month, and shows both logo retention and revenue retention. She writes down every rule she used, from what counts as a customer to how refunds are treated, and then tells you in plain words which plans and cohorts hold up, which don’t, and when things changed.

## When this is worth running

You ask for it in chat, usually before a pricing decision, a board meeting, a fundraise or a planning session. It is also worth a rerun a few months after any big change, such as a new plan, a price rise or a new onboarding flow, because cohorts show whether customers who joined after the change behave differently from those who joined before.

## The rules, written down first

Ana does not start with a chart. She starts with definitions, shows them to you, and keeps them on the first page of the results:

- **Customer.** An account with at least one paid invoice. Trials that never paid are excluded, and so are refunds within 14 days, which count as never paid.
- **Cohort month.** The month of the first paid invoice, in your time zone.
- **Cohort plan.** The plan at first payment. Customers who later upgrade stay in their starting plan’s cohort, so upgrades show up as revenue expansion rather than moving people between groups.
- **Retained.** Has an active, paid subscription at the end of the month. Failed payments still being retried count as at risk, not churned, until the subscription actually ends.
- **Revenue retention.** Monthly recurring revenue from the cohort in month N divided by month 0, including expansion and contraction. Gross revenue retention caps each customer at their starting value; net revenue retention does not.

## Building the cohorts

1. **Loads the history.** Subscriptions, invoices, refunds and plan changes from Stripe, loaded into MotherDuck so the analysis runs as repeatable SQL.
2. **Cleans the edges.** Removes test-mode data and internal accounts, converts other currencies at a fixed rate so exchange moves do not look like churn, and splits annual from monthly billing, because annual customers can only churn at renewal.
3. **Builds the triangles.** One cohort table for logo retention and one for revenue retention, rows by start month, columns for months 0 to 12, split by plan. Recent cohorts have fewer columns filled in, and Ana never treats a month that has not happened yet as a zero.
4. **Flags small cohorts.** Any cohort under 30 customers is marked, because one or two cancellations swing it too far to read.
5. **Finds the story.** She compares plans at the same age, spots cohorts that break the pattern and lines them up against dates you give her, such as a price change or a new onboarding flow.

## Stripe and MotherDuck, and why both

- **Stripe** holds the truth about who paid, for which plan, and when they stopped.
- **MotherDuck** gives Ana a place to run DuckDB SQL on that history. The queries and tables stay in your account, so the analysis is easy to check and can be rerun next month in minutes.

## What lands in the chat

A spreadsheet with the cohort tables, color-shaded so strong and weak cells stand out, one tab per view: logo retention by plan, revenue retention by plan, and the combined view. A short report, saved as a PDF or slides, opens with three or four plain findings, for example “Pro keeps 71% of customers at month 6 against 54% on Starter” and “Cohorts after the March price change lose 9 points more by month 3”. Then come retention curves by plan, the notable cohorts, the definitions and the SQL used, so anyone technical can check the work.

## Your OK, where it counts

Reading Stripe and running the analysis happen straight away. Ana never changes anything in Stripe. Saving tables or queries into your MotherDuck account is a change, so it waits for your OK the first time. If you plan to rerun this monthly, you can let her save to a set MotherDuck database on her own, or switch the chat to “Don’t ask” for this job. She stays inside your limits, credits and working hours either way.

## A day of spreadsheet work, saved

Building clean cohort tables by hand, with annual plans, upgrades, refunds and currency handled properly, typically takes a full day for a small team, and longer the first time. Ana’s first run usually takes under an hour, and a monthly rerun takes minutes. For most small teams that is around a day saved per analysis, plus far fewer arguments about which retention number is right.

## Your first cohort run

1. Connect Stripe and MotherDuck.
2. Tell Ana the start date, the plans to compare and any dates that matter, such as price changes.
3. Review the definitions she proposes, especially for trials, refunds and annual plans.
4. Read the findings, open the cohort tables, and approve saving the SQL to MotherDuck for next time.

## Getting more from the cohorts

- **Watch month 1 to 3 most closely.** Early losses usually point at onboarding, while later losses point at value or price.
- **Add the acquisition channel.** If your billing or CRM records where customers came from, Ana can cut cohorts by channel too.
- **Connect it to forecasting.** Finn can use the retention curves in a 12-month cash forecast, and Ana’s weekly churn-risk watch shows which current accounts are likely to become next month’s losses.

---

Source: https://prosyo.com/ai-agents/use-cases/ana-retention-cohorts/ · Prosyo
