A cohort analysis is a way of grouping customers who share a starting point, usually the month of their first order, and tracking what each group does over the following periods. Shopify's report works the same way: "customers are grouped into cohorts based on the date that they placed their first order." For an ecommerce brand, it is the clearest way to see retention, because it compares customers at the same stage of their relationship with the brand instead of mixing new and old customers in one average. This answer explains what a cohort analysis is, how to read one, which metrics to track and how to run one in Shopify. It is from Brand Media Works, an AI consulting and marketing data engineering firm for ecommerce brands. Facts are from the Shopify Help Center, read on 9 November 2026.
What is a cohort analysis?
A cohort is a group of customers who started at the same time. In ecommerce, that is usually everyone whose first order fell in the same week or month. A cohort analysis puts those groups side by side and measures the same thing for each of them, period by period, from their first order onward.
In Shopify's cohort table, "Each row represents a cohort of your customers that made their first purchase in the same time period." The columns then show the chosen metric for the weeks, months or quarters after that first order. Shopify's own example: a customer who first bought in February 2022 and bought again in February, June and September 2022 sits in the February cohort and counts as a repeat customer in Month 0, Month 4 and Month 7. Month 0 is the month of the first order, so "The period 0 column captures returning orders by the cohort's customers in the same period as their first order."
How do you read a cohort table?
The table below is an illustrative example with invented figures. It shows the share of each monthly cohort that has placed a second order by the end of each month.
| First order month | New customers | Month 1 | Month 2 | Month 3 |
|---|---|---|---|---|
| January | 1,000 | 8% | 13% | 16% |
| February | 1,200 | 9% | 14% | |
| March | 1,500 | 6% |
There are three ways to read it:
- Across a row: one cohort over time. January's customers keep coming back, and the curve shows how quickly the share who return flattens.
- Down a column: different cohorts at the same age. March's customers are returning less in Month 1 than January's or February's did, which is the early signal an overall repeat rate would hide.
- Along a diagonal: one calendar month across cohorts. A sale or a product launch in a given month shows up on the diagonal, because it affects every cohort at once.
In the example, March brought in the most new customers and the weakest early return. That pattern is worth investigating: something may have changed in how those customers were acquired, such as a new channel, a bigger discount or a different first product. Raising that question early is what the cohort table is for.
Which metrics should you track by cohort?
Shopify's report lets you choose the metric shown in the table, "including number of customers, customer retention rate, gross sales, net sales, or average order value", and amount spent per customer. For an ecommerce brand, we recommend four cohort views:
- Repeat rate: the share of the cohort that has bought again by each period. This is the retention view.
- Cumulative revenue per customer: what the average customer in the cohort has spent to date, which is the basis of lifetime value.
- Cumulative contribution per customer: the same on margin, after product cost, shipping, fees and returns.
- Cohort by acquisition channel or first product: the same views split by where the customer came from, so you can see which sources bring customers who return.
The last two are where cohort analysis meets acquisition cost. Customer lifetime value and LTV:CAC explains how to turn cohort spend into lifetime value, and CAC payback period shows how to read the month a cohort repays its acquisition cost. The choice of four views is our recommendation.
How do you run a cohort analysis in Shopify?
Shopify's Customer cohort analysis report "displays data about your customer acquisition and retention", and Shopify suggests using it "to find out which customers have made repeat purchases to identify your most valuable customers." It sits under Analytics, then Reports, in the Customers category. In the report's configuration panel you can:
- Choose the metric: customers, retention rate, gross sales, net sales, average order value or amount spent per customer.
- Set the interval: the time period cohorts are grouped by, such as weeks, months or quarters.
- Define the cohort: filter on the customer's first order by sales channel, marketing channel, marketing type, product name or subscription.
- Compare: against the previous period, the previous year or between cohorts.
- Change the view: the default is a heatmap, and a retention curve is also available.
Clicking any cell opens the cohort's details, including total sales, average order value, orders per customer and "the top marketing channels responsible for directing the cohort’s customers to your business". A customized report can be saved as a custom data exploration, and a strong cohort can be turned into a customer segment for marketing. Our answers on customer segmentation and customer retention rate cover both next steps.
Two settings need care. Projections of future spend per customer only appear when the store has 24 months of data, and Shopify warns that "Projections aren't a guarantee of future sales." Customer reports "might not display all the activity on your store from the past 12 hours", so very recent cohorts can look slightly low.
Where does Shopify's cohort report stop?
Shopify's report works on the orders and customers in Shopify. It is the right place to start, and it answers most retention questions. It does not bring in ad spend, product costs, shipping or fees, so it cannot show contribution margin per cohort, CAC by cohort or the month a cohort pays back. Shopify's related predicted spend tier, which sorts customers into High, Medium and Low expected spend, also needs the store to have "made over 100 sales".
Cohorts on margin and acquisition cost need order data joined to spend and costs, usually in a data warehouse. Brand Media Works builds that data layer as part of its marketing data engineering work, so cohort, lifetime value and payback views use the same numbers as finance.
Frequently asked questions
What is a cohort in ecommerce?
A cohort is a group of customers who share a starting point, usually the week or month of their first order. Grouping customers this way lets you compare how each group behaves at the same stage, such as three months after their first purchase.
Should cohorts be weekly or monthly?
Monthly cohorts suit most ecommerce brands, because repeat purchases take weeks or months and monthly groups are large enough to be stable. Weekly cohorts help when a brand sells fast-moving products or wants to see the effect of a specific campaign. This is our recommendation, and Shopify's report lets you switch intervals.
What does Month 0 mean in a cohort table?
Month 0 is the month of the cohort's first order. In Shopify's report, the period 0 column counts repeat orders that customers placed in the same period as their first order.
What is the difference between cohort analysis and lifetime value?
Cohort analysis is the method: grouping customers by start date and tracking them over time. Lifetime value is one of the results, the total a customer spends or earns for the brand. Measuring lifetime value by cohort shows whether newer customers are worth more or less than older ones.