my-appengineer Courses

Retention numbers: repeat rate, LTV and cohorts

Retention and loyaltyLesson16 min16 / 20

Getting a customer the first time is expensive. Getting the same customer back is usually much cheaper, and every good support reply, smooth return and honest review response from the previous modules feeds into it. In this lesson you learn the handful of numbers that show whether customers come back, and how much that is worth.

The four numbers that matter

NumberQuestion it answersHow to calculate
Repeat purchase rateWhat share of customers buy again?Customers with 2+ orders ÷ all customers (in a period)
Time to second orderWhen do they come back?Median days between first and second order
Orders per customerHow often, on average?Total orders ÷ unique customers (in a period)
Customer lifetime value (LTV)What is a customer worth?Contribution per order × expected orders per customer

For a SaaS like Bookwise the equivalent numbers are churn rate, net revenue retention and LTV based on monthly contribution; the course Subscriptions: onboarding, retention and SaaS metrics covers those in depth. This lesson focuses on webshops and one-off digital products.

Use contribution, not revenue

An LTV based on revenue looks impressive and misleads you. Use contribution: what is left of an order after product cost, shipping, payment fees and returns, before marketing and fixed costs. You calculated this in Online business fundamentals and adjusted it for returns in the returns module.

Worked example: Paws & Co

Across its range, Paws & Co's average contribution per order after returns is €11.00. From twelve months of orders:

  • 2,000 first-time customers
  • 440 of them ordered again within 12 months → repeat purchase rate = 440 ÷ 2,000 = 22%
  • those 440 repeat customers placed on average 1.8 extra orders in the 12 months
Expected orders per customer (12 months) = 1 + (22% × 1.8) = 1 + 0.396 = 1.396

12-month LTV = €11.00 × 1.396 ≈ €15.36

Now compare with acquisition. Paws & Co pays on average €12 in advertising per new customer (CAC). On the first order alone it loses €1 per customer (€11 − €12). Only the repeat orders make the customer profitable, by €3.36 over 12 months.

What if better post-purchase emails and a refill reminder lift the repeat rate from 22% to 30%, with the same 1.8 extra orders?

1 + (30% × 1.8) = 1.54 orders → LTV = €11.00 × 1.54 = €16.94

Extra contribution per new customer = €16.94 − €15.36 = €1.58

At about 167 new customers a month (2,000 a year): €1.58 × 167 ≈ €264 a month

That raises the profit per customer after CAC by almost half (from €3.36 to €4.94) without spending more on ads. That is why retention matters so much for small shops with thin margins.

Watch out

LTV is a forecast, not a fact. With little history, use a short window (6 or 12 months) and real repeat data, not "customers will stay for years". Never use a hoped-for LTV to justify an ad budget you cannot afford to lose; see the course Paid advertising for stopping rules.

Cohorts: the honest view

Averages hide changes. A cohort is a group of customers who made their first order in the same month. Track what share of each cohort comes back over time:

First order inCustomersRepeat within 30 dayswithin 90 dayswithin 180 days
January1506%14%20%
February1705%13%19%
March1609%19%-
April18010%--

Paws & Co introduced a post-purchase email series in March. The 30- and 90-day columns jump for March and April. Without the cohort view, that effect would have been buried in the overall average.

Getting the data

You need, per order: an anonymous customer key, the order date and the order value (or contribution). In a BIAB shop, Claude can read your orders through the shop connector (list_orders, get_order). Customer details need a separate scope; for this analysis you do not need names or emails, so ask Claude to work with a customer ID or a hashed key only. The shop's own analytics (get_shop_analytics) gives visits and sales summaries for context. Open your shop dashboard

Ask Claude
Using my shop connector, read all orders from [start date] to [end date]. Do not output names, emails or addresses; identify customers only by an internal customer ID or a hash of their email. Calculate: number of unique customers, repeat purchase rate, median days between first and second order, average orders per customer, and a cohort table by month of first order with the share of customers who ordered again within 30, 90 and 180 days. Then calculate a 12-month LTV using a contribution per order of [€ x]. Show your method and every calculation step so I can check it, and say clearly where the data is too thin to draw conclusions.

For a SaaS or course app built on my-app.engineer, Pulse counts visits, sign-ups and activations first-party in your cluster, which is the starting point for retention numbers there. Open Pulse

What drives repeat purchases

In rough order of impact for a small webshop:

  1. A product people need again (consumables, refills, sizes they grow out of). If your range has no natural repeat, retention will stay low whatever you do; consider adding a consumable.
  2. A first experience without friction: on-time delivery, the product as described, a fast answer when something goes wrong.
  3. Being remembered at the right moment: a reminder when the treats are likely to run out, not a weekly discount blast.
  4. A reason to choose you over a marketplace: better advice, a bundle, a guarantee, a brand they like.
How it works in your country

Retention emails and reminders need a legal basis. In the EU, the e-privacy rules allow email marketing to existing customers for similar products under the "existing customer" (soft opt-in) exception in many countries, with an opt-out in every message; others require explicit consent. Examples of regulators: the ACM and Autoriteit Persoonsgegevens (Netherlands), UODO and UKE (Poland), the ICO (UK, under PECR). Check your country's rules before you send; see also Email marketing and automation.

Your task

Calculate your four retention numbers (or, without enough data, write down your assumptions for each and how you will measure them). Calculate a 12-month LTV with your own contribution per order and compare it with your CAC or your maximum CAC. Then calculate what a 5-point higher repeat rate would be worth per month.

This course is general information, not personal legal, tax or financial advice. Rules, amounts and dates change: check the official source for your country before you act.