TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Ecommerce Cohort Analysis: Repeat Purchases and Payback by First-Order Month

Group customers by the month of their first order and read repeat-purchase share and cumulative revenue per customer. A six-cohort example shows why a blended repeat rate misleads and whether a holiday-discount cohort paid back its CAC.

Xu An Published Nov 28, 2026 16 min read Analytics
Sample data: a normal September cohort recovers its $30 CAC in month 2 and reaches $38.70 margin per customer by month 12; the 30%-off November cohort reaches $16.64, still $13.36 short. 45% margin on full-price orders assumed.Sample data

Ecommerce cohort analysis groups customers by the month of their first order and tracks each group separately: the share who order again by month 1, 3, 6 and 12, and cumulative revenue per original customer. That answers what a blended repeat rate hides: whether a given month's customers came back and paid back their acquisition cost.

What you will learn

  • Start cohorts at the first purchase and divide every number by the original cohort size, not by the customers still buying
  • A big discount month can pull a blended repeat rate down even when no cohort got worse; read it as its own row
  • Convert cumulative revenue to margin before comparing it with CAC; in the sample a 30%-off cohort was $40,080 short after a year

What is cohort analysis in ecommerce?

Ecommerce cohort analysis groups customers by the month of their first order and then follows each group separately: how many of them order again by month 1, 3, 6 and 12, and how much revenue each original customer has brought in by then. One row per first-order month, one column per month since that first order.

Two choices make this different from the signup or campaign cohorts used in SaaS and marketing reports (covered in cohort analysis for marketing):

  • The starting event is the first purchase, not a visit, a signup or a newsletter subscription. A store's real question is whether a buyer becomes a repeat buyer.
  • The outcome is money and orders, not logins. A cohort can keep "visiting" and stop buying; for a store, only the second, third and fourth orders count.

The idea is old and well tested. The CDNOW data set that Bruce Hardie and Peter Fader used for years of customer-base research is exactly one such cohort: 23,570 people whose first-ever CDNOW purchase was in the first quarter of 1997, followed through the end of June 1998. Everything in this guide is the same move at store scale: fix the group at its first order, then watch it over time.

The core claim of this article: a store-wide repeat rate blends cohorts of very different quality, and only a first-order-month table shows whether a given month's customers came back and paid back what it cost to acquire them. The general method for any cohort table is in how to do cohort analysis; this guide is the purchase-based version for stores.

Why does a blended repeat rate hide what is happening?

A repeat rate for the whole store is a weighted average of every cohort in the period. When the mix changes, the average moves even if no group of customers changed its behaviour.

Sample data: six monthly cohorts of a store, each followed for 12 months (the full table is in the next section).

  • July–October first-time buyers: 4,640 customers, of whom 1,184 ordered again within 12 months, a 12-month repeat rate of 25.5%.
  • Add November (a 30%-off holiday sale) and December (gift buyers): 9,540 customers, 2,006 ordered again, a blended rate of 21.0%.

The four normal months repeated at 24.8–26.0% each. Nothing about them got worse. The blended rate fell 4.5 points because November alone brought 3,000 customers who repeated at 15.0%, and December 1,900 who repeated at 19.6%. A team watching only the blended number would read "retention is dropping" and might start a loyalty programme for customers who are behaving exactly as before.

The opposite also happens. A store that cuts discounting brings in fewer but better first-time buyers, and the blended repeat rate rises while revenue from new customers falls. Neither movement can be read correctly without splitting by first-order month.

Rule of thumb: if the number of new customers in a month is more than about 1.5 times the usual month, read that month as its own cohort before you read any store-wide average.

How do you build a first-order cohort table?

You need one row per order with five fields: order id, customer id, order date, order amount and a refund flag or refund amount. Then:

  1. Find each customer's first order. Sort orders by customer and date; the earliest successful, non-refunded order sets the cohort. Look back far enough, at least two years, so a returning customer from three years ago is not counted as new.
  2. Assign the cohort month. The month of that first order, for example "September 2024".
  3. Compute the month index of every order. Month 0 is the first order itself; month 1 is the next 30 days or the next calendar month. Pick one convention and keep it.
  4. Count repeat buyers. For each cohort and month N, count customers with at least one more order up to month N, divided by the cohort's original size. This is the "ordered again by month N" share, and it can only rise.
  5. Add cumulative revenue per customer. Sum all revenue from the cohort up to month N, including the first order, minus refunds, and divide by the original cohort size, not by the customers still buying.
  6. Leave unfinished months blank. A cohort that started in October has no month-12 value yet. A blank cell is "not yet", a zero is "nobody came back"; mixing them drags averages down.

Three decisions to write down before anyone reads the table: whether refunded first orders count, whether guest checkouts are matched to accounts by email, and which currency and tax treatment revenue uses. Change any of them and the table changes.

Worked example: six monthly cohorts

Sample data: a store selling home goods, cohorts by first-order month, each followed for 12 months. Normal first orders average $60; November's sale price averaged $49; repeat orders average $65 at full price.

First-order monthNew customersOrdered again by M1by M3by M6by M12Revenue per customer by M12
Jul 20241,0506.2%12.8%18.6%25.4%$85.43
Aug 20241,1105.9%12.5%18.9%25.9%$85.93
Sep 20241,2006.0%12.0%17.5%26.0%$86.00
Oct 20241,2805.6%11.6%17.0%24.8%$84.82
Nov 2024 (30% off)3,0003.0%6.5%10.5%15.0%$62.65
Dec 20241,9004.1%8.9%13.2%19.6%$75.84

How the revenue column is built, for September: $60 first order + 0.40 repeat orders per original customer × $65 = $86.00. For November: $49 + 0.21 × $65 = $62.65. Both divide by the original cohort size (1,200 and 3,000), so customers who never came back still count.

What a single blended dashboard would show instead: November produced the most first-order revenue of the half-year, 3,000 × $49 = $147,000, against 1,200 × $60 = $72,000 in September. On a monthly revenue chart November is the hero. The cohort table shows the other half of the story.

How do you read the table in three directions?

A cohort table answers three different questions depending on which way you read it.

Read alongQuestion it answersIn the sample
A rowHow does one month's customers mature?September: 6.0% → 12.0% → 17.5% → 26.0%; 46% of the 12-month repeat buyers were back by month 3 and 67% by month 6
A columnIs the store getting better or worse at turning new buyers into repeat buyers?Month-3 repeat for normal months sits at 11.6–12.8%; no trend
Across cohorts of similar sizeDid a campaign or a season bring different customers?November's month-3 repeat (6.5%) is about half the normal months'

Decision rules that come out of these readings:

  • If one cohort's month-3 repeat share is below about two-thirds of the median of the other cohorts, treat it as a different customer type, not as noise. Check where it came from (the discount, a channel, a product) before averaging it in.
  • If a column drifts down over three or more consecutive cohorts of similar size, the store's post-purchase experience is getting worse: delivery, product quality, follow-up emails. That is a store problem, not a mix problem.
  • If a cohort has fewer than about 100 customers, one or two repeat buyers move its rate by a point or more; group two months together before you draw a conclusion.

Did the holiday cohort pay back its acquisition cost?

Revenue per customer is not profit. To answer "was this month worth buying?", turn cumulative revenue into cumulative gross margin per customer and compare it with what a new customer cost.

Sample data and assumptions: cost of goods is 55% of the full list price, so gross margin on a full-price order is 45%. Customer acquisition cost (CAC) is $30 in both months.

September cohort

  • First order margin: $60 × 45% = $27.00
  • Each repeat order adds $65 × 45% = $29.25
  • Cumulative margin per customer: month 1 = $27.00 + 0.06 × $29.25 = $28.76; month 2 = $27.00 + 0.105 × $29.25 = $30.07
  • CAC is recovered in month 2. By month 12: $27.00 + 0.40 × $29.25 = $38.70 per customer, so the cohort is $8.70 × 1,200 = $10,440 ahead of its acquisition cost.

November cohort

  • The sale price was $49 on items listing at $70, whose cost is $70 × 55% = $38.50. First order margin: $49 − $38.50 = $10.50
  • By month 12: $10.50 + 0.21 × $29.25 = $16.64 per customer
  • Gap to CAC: $30 − $16.64 = $13.36 per customer, or $13.36 × 3,000 = $40,080 still unrecovered after a year.
  • At the month 7–12 pace (0.08 extra repeat orders over six months, about $0.39 of margin a month), closing $13.36 takes roughly 34 more months, close to four years in total, and repeat pace usually slows as a cohort ages.

The sample is illustrative, but the direction matches published evidence. In customer-level data from a newspaper and an online grocer, Lewis (2006) found that deeper acquisition discounts went with lower repeat-buying rates and lower customer value; a 35% acquisition discount produced customers worth about half the long-term value of customers acquired without a promotion. In the sample, November's repeat revenue per customer by month 12 ($13.65) is about 0.53 of September's ($26.00).

What to do with the answer:

  • If a cohort has not covered CAC with margin by month 6 and its month 3–6 pace cannot close the gap within your planning horizon, cap the discount or the spend that produced it next year rather than celebrating its revenue.
  • If it did pay back but slower than normal months, the campaign may still be worth running for cash flow, but plan inventory and cash on the slower curve.
app.tapcub.com

Sep payback

Month 2

$30.07 vs $30 CAC

Nov margin at M12

$16.64

$13.36 below CAC

Nov shortfall

$40,080

3,000 customers

Cumulative margin per customer: September vs November

September cohortNovember cohort (30% off)
M0M1M2M3M4M5M6M7M8M9M10M11M12
Sample data
Sample data: a normal September cohort recovers its $30 CAC in month 2 and reaches $38.70 margin per customer by month 12; the 30%-off November cohort reaches $16.64, still $13.36 short. 45% margin on full-price orders assumed.

Which cohort metrics matter for a store?

Five numbers per cohort cover nearly every decision. Each needs the original cohort size as the denominator unless stated.

  • Ordered again by month N (%): customers with a second order up to month N ÷ cohort size. The core retention signal.
  • Orders per customer by month N: all orders up to month N ÷ cohort size. Separates "more people came back" from "the same people bought more".
  • Cumulative revenue per customer: revenue up to month N net of refunds ÷ cohort size. The number to compare with CAC once converted to margin.
  • Median days to second order: among repeat buyers only. Tells you when to send the replenishment or "how was it?" email.
  • Refund rate by cohort: refunded orders ÷ orders. A sale cohort with high refunds is worse than its revenue suggests.

The table below summarises the formula and the decision each one supports. For the broader set of store metrics that sit outside cohorts, such as conversion rate and average order value, see ecommerce data analytics.

Cohort metricFormulaDecision it supports
Ordered again by month NCustomers with a 2nd order up to month N ÷ cohort sizeIs this cohort turning into repeat buyers?
Orders per customer by month NAll orders up to month N ÷ cohort sizeMore people returning, or the same people buying more?
Cumulative revenue per customerRevenue to month N net of refunds ÷ cohort sizeInput to LTV and, as margin, to CAC payback
Median days to 2nd orderMedian over repeat buyers onlyWhen to send replenishment or follow-up emails
Refund rate by cohortRefunded orders ÷ ordersIs a sale cohort worth less than its revenue says?

Denominators are the original cohort size unless stated; leave months that have not ended blank.

What mistakes break an ecommerce cohort analysis?

  • Dividing by active customers instead of the original cohort. Revenue per remaining customer rises as low-value customers drop out and makes every cohort look healthier with age.
  • Using signup or first visit as the start. Many store accounts never buy; mixing them in makes repeat rates look tiny and unrelated to revenue.
  • Treating month 0 as a repeat. A customer who places two orders on day one has not "come back"; count repeats from the second order on a later day or from month 1.
  • Comparing revenue, not margin, against CAC. In the sample, November's $62.65 of revenue per customer looks like double the $30 CAC; its $16.64 of margin covers just over half of it.
  • Reading the newest cohorts too early. A cohort with one month of history can only report month 1. Blank later cells, don't zero them.
  • Splitting guest and account orders. If guest checkouts are not matched to a customer by a stable id or email, the same person appears as two first-time buyers and repeat rates fall.

How to do ecommerce cohort analysis in TapCub

The six-cohort example above maps onto TapCub like this, provided purchases are sent as orders.

Commerce & revenue metric cards in TapCub: orders, buyers, first-time buyers and repeat rate, each compared with the previous period
Demo data: the store-wide repeat rate and first-time buyers on Commerce & revenue; read them by first-purchase month before drawing conclusions.
  1. Get purchases onto the order ledger. Send a purchase event from your server on payment success with order_id, revenue and currency, and a refund event with the same order id. All-platform analytics › Business › Commerce & revenue then shows revenue, orders, buyers, average order and repeat rate, where repeat rate is people with at least two purchases ÷ buyers. Its lifetime value view groups people by first-purchase month and shows cumulative revenue per person, which is the revenue column of the example.
  2. Join one customer's orders into one person. Call tapcub.login after sign-in so web, App and mini program purchases by the same customer land on one person. Anonymous visitors have no profile and drop out of person-based cohorts. Identified mode has to be on for the project: it needs a Pro plan or above, and the docs say to contact support to turn it on.
  3. Build the "ordered again by month N" grid. In All-platform analytics › Behavior › Behavior analysis, open retention with purchase as both the start and the return event, monthly periods (up to 12), and "returned on period N or any later period" so the curve never rises again. By default only people whose first-ever start event falls in the cohort are included, looking back 730 days, so earlier customers do not count as new. Set the cumulative property to revenue to get average accumulated revenue per person in each cell. Periods that have not ended stay blank, not zero.
  4. Isolate a campaign's customers. Retention has no breakdown, so create a rule segment in All-platform analytics › Users › Segments & tags (for example, people who did purchase during the sale dates) and use Analyze to apply it, then run the same retention again without it for comparison.
  5. Put margin and CAC next to it yourself. All-platform analytics › Business › Channel ROI gives cost per acquisition once you import spend by day and channel. Gross margin and the payback month are a spreadsheet step: TapCub reports revenue, not cost of goods.

FAQ

What is a cohort in ecommerce?

A cohort is a group of customers who share a starting point, most usefully the month of their first order. Following that group over time shows how many of them order again by month 1, 3, 6 and 12 and how much revenue each one brings, without newer or older customers mixing into the numbers.

How do you calculate repeat purchase rate by cohort?

Take the customers whose first order fell in the cohort month. For month N, count those with at least one more order up to month N and divide by the original cohort size. In the sample, 312 of September's 1,200 customers ordered again within 12 months: 312 ÷ 1,200 = 26.0%.

How long should you track an ecommerce cohort?

Twelve months covers most repeat-purchase patterns and a full seasonal cycle. Read month 3 and month 6 as early signals, since in the sample 46% of September's 12-month repeat buyers had returned by month 3 and 67% by month 6. Products bought once every few years need longer windows; consumables can be read weekly.

Should cohorts be monthly or weekly?

Monthly suits most stores because each cohort is large enough to be stable. Use weekly cohorts only if you get several hundred new customers a week and products are re-bought within weeks. If a monthly cohort has fewer than about 100 customers, combine two months.

How do you calculate CAC payback from a cohort?

Convert cumulative revenue per customer into cumulative gross margin per customer, then find the first month where it reaches CAC. In the sample, September reached $30.07 against a $30 CAC in month 2, while the discounted November cohort was still $13.36 short after 12 months.

Sources

  • Michael Lewis. Customer Acquisition Promotions and Customer Asset Value. Journal of Marketing Research 43(2), May 2006, pp. 195–203 — deeper acquisition discounts relate to lower repeat-buying rates; a 35% discount gave customers about half the long-term value. Abstract checked 2026-11-28.
  • Bruce G. S. Hardie. Notes on the CDNOW Master Data Set — 23,570 customers whose first purchase was in Q1 1997, tracked to the end of June 1998. Checked 2026-11-28.
Filed underAnalytics

Was this article helpful?

We use your answers to fix and expand this page.

Xu An

Customer Experience Consultant

Writes about live chat, visitor conversations, and self-service, sharing practical ways to make customer communication clearer and more effective.

See repeat purchases by first-order month

Order ledger, repeat rate, lifetime value by first-purchase month and monthly purchase retention with cumulative revenue, from one tracking code.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics