Ecommerce Cohort Analysis: How to Build and Read a Cohort Table for Paid Acquisition
Priya Raghunathan
电商效果投放负责人
Ecommerce cohort analysis groups the customers you acquire by when they first bought, and by which channel brought them, then follows each group forward to see how much they buy and how much margin they leave behind. For a store that pays for customers through ads, it answers the question ROAS cannot: are the people this spend brings in worth what they cost, once repeat orders have had time to arrive?
Quick answer: Group customers by the month of their first order, then split each group by the channel of that first order. For each cohort, track repeat rate, orders, net sales and contribution per customer at 30, 60, 90 and 180 days. Compare cumulative contribution with new customer acquisition cost to set a CAC ceiling per channel.
This guide is about building and reading the table itself. What to do with the result is covered in two companion guides: the LTV to CAC ratio for ecommerce and the CAC payback period. The cost side of every cohort is new customer acquisition cost, or nCAC.
What is a customer cohort in ecommerce?
A customer cohort in ecommerce is a group of customers who share the same starting point, so that everyone in the group has had the same amount of time to come back and buy again.
Two ways of grouping matter most when you buy ads:
- By first-order month. Everyone who placed their first order in March is the March cohort, whatever they bought later. This is the standard view, and the one that shows whether customers acquired recently behave like older ones.
- By acquisition channel. Split each monthly cohort by the channel credited with the first order: Meta, Google, TikTok, organic search, email and so on. This is the view that turns cohort analysis into a media buying tool, because channels with similar first-order costs can bring customers who repeat very differently.
Later you can also split by first product, discount code or country. Whatever the split, the cohort is defined by the first order. The point is to compare like with like: a store-wide repeat rate mixes customers acquired two years ago with last week's, so it moves with the mix of ages, not with customer quality.
把这篇指南用起来
在一个地方创建、测试和扩量六个广告平台的投放,你的 AI 智能体团队 Wavo 随时在旁协助。免费试用 14 天。
Which metrics belong in a cohort table?
A useful cohort table for a store that buys ads carries five metrics per cohort, each measured at fixed ages after the first order rather than in calendar months.
- Customers. The number of first-time customers in the cohort. Small cohorts are noisy, so note the size next to every row.
- Repeat rate. The share of the cohort with at least a second order by that age.
- Orders per customer. Cumulative orders divided by cohort size, including the first order. It sits above 1 plus the repeat rate whenever some customers order three or more times.
- Net sales per customer. Cumulative sales after discounts and refunds, divided by cohort size.
- Contribution per customer. Net sales (after refunds) minus product cost, shipping, payment fees, packaging and the cost of handling returns, divided by cohort size. This is CM2 as defined in our guide to contribution margin for ecommerce, and it is the only metric you should compare with nCAC.
Use day windows (30, 60, 90 and 180 days after each customer's own first order) when you can. Calendar months treat a customer who bought on 31 March as one month old on 1 April. Shopify and GA4 both work in periods, so day windows usually mean an order export and a spreadsheet.
Refunds need one more rule. A refund often lands weeks after the order, so recent cells understate returns. Rebuild older cohorts once the return window has closed.
How do you build the cohort table step by step?
Building an ecommerce cohort table takes one order export, one spend export and five steps, and the file can be refreshed every month.
- Export every order with customer ID, order date, net sales after discounts, refunds and the channel or UTM source recorded for the order. Keep guest checkouts matched by email where your store allows it, or they will look like new customers every time.
- Find each customer's first order. Its month is the cohort. Its channel is the acquisition channel. Consistent UTMs on every ad are what make that channel field reliable.
- Compute the age of every later order in days since that customer's first order, and bucket it into 0 to 30, 31 to 60, 61 to 90 and 91 to 180 days.
- Turn sales into contribution. Multiply net sales by your CM2 percentage, or subtract costs per order if you have them. Then sum cumulatively per cohort and divide by cohort size.
- Add nCAC per cohort and channel. Channel spend in the acquisition month divided by the new customers credited to that channel in the same month.

One rule keeps the table honest: leave a cell blank until every customer in the cohort has reached that age. A March cohort read on 1 October can show 180 days, because the last March customer turned 180 days old on 27 September. An April cohort cannot, because customers from 30 April only reach 180 days on 27 October. A partly filled cell always looks worse than the final number.
How do you read a cohort triangle?
A cohort triangle is read in three directions: down a column to compare cohorts at the same age, across a row to see one cohort mature, and against the blanks to know which numbers are still moving.
The table below is an invented example with round numbers, not data from any store. It shows the repeat rate of six monthly cohorts, all channels together, read on 1 October.
| First-order month | Customers | 30 days | 60 days | 90 days | 180 days |
|---|---|---|---|---|---|
| March | 1,000 | 10% | 16% | 21% | 29% |
| April | 950 | 9% | 15% | 20% | |
| May | 980 | 10% | 16% | 21% | |
| June | 1,400 | 7% | 11% | 14% | |
| July | 1,020 | 9% | 14% | ||
| August | 990 | 10% |
Down a column. At 90 days, March, April and May sit at 20 to 21 percent. June sits at 14 percent. Something about June's customers is different.
Across a row and against the context. June also has 1,400 customers, about 40 percent more than its neighbours. In this example June was a summer sale month: the discount brought in more first-time buyers, and fewer of them came back at full price. That is a pattern worth checking in your own data, since the same sale also cut first-order margin.
Against the blanks. July's 90-day cell is empty because its youngest customers have not reached 90 days yet. Judge July on its 30-day and 60-day cells only, where it tracks March to May closely.
If June's customers repeat less, the campaigns that won them are worth less than their first-order ROAS suggested.
A worked example: two channel cohorts against nCAC
Splitting a monthly cohort by acquisition channel shows which channel's customers earn back their cost, and the answer often differs from the ranking by cost per purchase.
This example is invented, with numbers chosen to show the method. It splits the March cohort above: 500 first-time customers credited to Meta, 300 to Google Search and 200 to organic, email and direct.
- Meta spend in March: €22,500, so Meta nCAC is €22,500 ÷ 500 = €45
- Google Search spend in March: €15,000, so Google nCAC is €15,000 ÷ 300 = €50
- Every order is €70 of net sales at 45 percent CM2, so each order contributes €31.50
| Cohort (March) | Age | Repeat rate | Orders per customer | Net sales per customer | Contribution per customer | Gap to nCAC |
|---|---|---|---|---|---|---|
| Meta, nCAC €45 | First order | 0% | 1.00 | €70.00 | €31.50 | −€13.50 |
| 30 days | 8% | 1.08 | €75.60 | €34.02 | −€10.98 | |
| 90 days | 17% | 1.20 | €84.00 | €37.80 | −€7.20 | |
| 180 days | 24% | 1.34 | €93.80 | €42.21 | −€2.79 | |
| Google Search, nCAC €50 | First order | 0% | 1.00 | €70.00 | €31.50 | −€18.50 |
| 30 days | 12% | 1.12 | €78.40 | €35.28 | −€14.72 | |
| 90 days | 26% | 1.36 | €95.20 | €42.84 | −€7.16 | |
| 180 days | 38% | 1.60 | €112.00 | €50.40 | +€0.40 |
On first-order numbers, Meta looks better: €5 cheaper per new customer. At 180 days the order reverses. The Google cohort has earned back its acquisition cost with €0.40 to spare. The Meta cohort is still €2.79 short per customer, or about €1,400 across 500 customers.
The quick check agrees. Orders needed to pay back are nCAC ÷ contribution per order: €45 ÷ €31.50 ≈ 1.43 for Meta, €50 ÷ €31.50 ≈ 1.59 for Google. Google's cohort reaches 1.60 orders per customer by day 180. Meta's reaches 1.34.
How do cohorts set CAC targets and payback?
Cohort analysis turns into a CAC target when you choose a payback window and read the cumulative contribution per customer at that age, channel by channel.
With a 180-day window, the example gives a ceiling of €42.21 for Meta and €50.40 for Google Search. Meta's current €45 is above its ceiling, so either nCAC comes down by about €2.80 or Meta customers have to repeat more. At €42.21, the same 500 customers would cost €21,105 instead of €22,500.
With a 90-day window, the ceilings drop to €37.80 and €42.84, and neither channel's current nCAC fits. A brand with little cash buffer that needs a 90-day payback would have to cut both or accept a smaller acquisition budget.
Three habits keep these targets useful:
- Hold a first-order line too. The cohort ceiling says what a customer is worth over the window. The first-order break-even, from our guide to first-order profitability, says how much cash each new customer costs you on day one.
- Use nCAC, never blended CAC. Dividing spend by all customers, returning ones included, makes every cohort look cheaper. Our guide to blended CAC explains when the wider number is still useful.
- Rebuild every month. A ceiling built from one cohort is a guess; each new cohort that matures confirms or moves it.
How long a window your cash can carry, and how cohorts stack up while they wait to pay back, is the subject of our CAC payback period guide.
What are the limits of channel cohorts?
Channel cohorts are only as reliable as the way the first order was credited to a channel, and every crediting method has blind spots that can move customers between rows.
- The attribution model decides the rows. A customer who saw a Meta ad and then searched your brand name sits in the Meta row under first-touch and the Google row under last-touch. Our comparison of first-touch vs last-touch attribution shows how far apart the two can be. Pick one model and keep it for every cohort.
- Brand search collects demand others created. In the example, part of Google Search's strong repeat rate could come from people who already knew the brand. Split brand and non-brand search into separate rows before drawing conclusions.
- Credited is not caused. A channel can claim customers who would have bought anyway. Our guide to incrementality testing covers how to check whether a channel adds customers.
- Small rows are noisy. A cohort of 40 customers moves several points on a handful of orders. Merge months or channels until rows are stable.
- Different sources, different channels. Your store, GA4 and each ad platform credit first orders differently. Choose one source for the channel column and say which in the table.
Where do you get cohort data from Shopify and GA4?
Shopify and GA4 both have built-in cohort views that are good starting points, but neither knows your contribution margin or your ad spend, so the last steps happen in your own sheet.
Shopify. The Customer cohort analysis report groups customers into cohorts based on the date of their first order. Each row is a cohort, and you choose the metric, including number of customers, customer retention rate, gross sales, net sales and average order value, shown over weeks, months or quarters. It displays as a heatmap by default, with a retention curve option. Selecting amount spent per customer enables projections, which Shopify bases on the previous 24 months of data for each cohort; without 24 months of data the projections toggle does not appear. Clicking a cell shows details such as the top marketing channels that brought the cohort's customers. You still multiply net sales by your margin to reach contribution.
GA4. The cohort exploration in Explore groups users by an inclusion criterion such as first touch (acquisition date) or any transaction, with a return criterion, daily, weekly or monthly granularity, and standard, rolling or cumulative calculation. You can break cohorts down by a dimension, which shows the top 15 values, and the exploration holds up to 60 cohorts. Keep two limits in mind. GA4 counts users as Analytics identifies them, which is not the same as a customer record in your store. Its First user source / medium describes the session that first acquired the user, which may come well before their first order.
Your own export. For day windows, contribution and nCAC by channel, an order export plus channel spend in a spreadsheet stays the most flexible route.
Where Wevion fits
Wevion does not build cohort tables. It helps with the half of the table that sits outside your store: what each channel spent to acquire the cohort, on the same dates as your orders.
Wevion connects Meta, Google, TikTok, Snapchat, Taboola and Outbrain ad accounts through each platform's official API and syncs data about every 15 minutes, so spend for every channel sits in one dashboard. Cross-channel analytics converts every account into one currency at each day's exchange rate, and you can download the active view's daily data as CSV or Excel for your cohort sheet.
Wevion's Shopify app syncs orders, products and refunds and reads product costs from Shopify. Profitability Analytics, in beta, uses cost per item plus the shipping and fees you set once to show profit, margin and POAS next to ad spend, which gives you the contribution per order for step 4. The cohort repeat curve still comes from your store's own reports or order export.
You can try it on your own ad accounts with 14 days free on any plan, no card.
Key takeaways
- Ecommerce cohort analysis groups customers by first-order month and acquisition channel, then follows each group at fixed ages.
- Track repeat rate, orders, net sales and contribution per customer at 30, 60, 90 and 180 days, and compare contribution with nCAC.
- Leave cells blank until every customer in the cohort has reached that age.
- A channel that is cheaper on the first order can pay back later, or not at all, within your window.
- Your CAC ceiling per channel is the cumulative contribution per customer at your payback window.
- Channel rows depend on how the first order is credited: choose one model and one data source, and keep both.
继续探索
广告管理平台
打开精选的主题总览页,本主题下的每一篇指南都在,从基础排到进阶。