A customer cohort analysis for Shopify groups your buyers by the month of their first order, then tracks how many keep buying in the months that follow. The result is a grid that shows exactly when customers drop off and whether the customers you acquired this quarter retain better than the ones you acquired last year.

It is the single clearest way to answer the question every store owner eventually asks: are my customers actually coming back, or am I just renting growth from ads? A revenue chart can climb while retention quietly collapses. A cohort table cannot hide that.

This guide walks through building one from raw Shopify data, reading the curve, and using it to spot which acquisition channels are worth scaling.

What Is a Customer Cohort Analysis?

A cohort analysis tracks a group of customers who share a starting point over time. In ecommerce, that starting point is almost always the month of a customer’s first purchase. Everyone whose first order landed in March 2026 is the “March cohort,” and you follow them month by month to see what share orders again.

The difference between this and a plain churn number matters. Churn gives you one figure for one period. A cohort grid follows each group across many periods at once, so you can see the shape of how customers leave, not just that they left.

This is what makes cohorts the diagnostic tool behind metrics like customer lifetime value and repeat purchase rate. Those numbers tell you the score; the cohort table tells you why.

How Do I Build a Cohort Table from Shopify Data?

Start by exporting your order history. In Shopify admin, go to Orders and export all orders to CSV, making sure the file includes the customer email or ID and the order date. Each customer’s earliest order date defines their cohort.

From there, build a grid in a spreadsheet or BI tool:

  1. Assign each customer a cohort month based on their first order date.
  2. Calculate “months since first order” for every subsequent order that customer places.
  3. Count active customers per cell — for each cohort, how many placed an order in month 0, month 1, month 2, and so on.
  4. Convert to percentages by dividing each cell by the cohort’s starting size.

The output is a triangular table. Rows are cohort months, columns are months since acquisition, and each cell is a retention percentage.

CohortMonth 0Month 1Month 3Month 6Month 12
Jan 2026100%18%12%9%7%
Feb 2026100%22%15%11%
Mar 2026100%26%17%

Reading down a column shows whether newer cohorts retain better than older ones. In the example above, Month 1 retention climbed from 18% to 26% across three cohorts — a sign that recent onboarding or product changes are working.

How Do I Read the Retention Curve?

Plot any cohort’s percentages across time and you get a retention curve that drops fast, then flattens. The two regions that matter most are the steep initial drop and the long-term floor where the line levels off.

That floor is your core retention rate — the share of customers who become genuine repeat buyers. For most ecommerce stores, retention curves flatten at roughly 15-25% after 12 months, though high-frequency categories like beauty and consumables often hold above 40%, and luxury settles lower.

“The first purchase is an introduction. The second is the relationship. Your cohort curve shows exactly where most stores fail to earn it.”

Reducing the initial drop is usually the higher-leverage move. Lifting Month 1 retention a few points lifts every month after it, because retention compounds.

Which Channels Should I Compare?

The real power of cohort analysis appears when you split cohorts by acquisition source. Tag each customer with how they arrived — paid ads, organic, email, or referral — and build a separate curve for each.

This is where most stores get a surprise. A paid channel can deliver the most first orders while retaining the worst, quietly dragging down customer lifetime value even as it inflates revenue. A referral or group-buying channel often shows a flatter, higher curve, because customers who arrive through a friend tend to behave like the friend who invited them.

That gap is decision-grade information. The average ecommerce store sees only about a 28% annual customer retention rate, and since returning customers spend meaningfully more than first-timers, a channel that retains better is worth more per acquisition even at a higher upfront cost. Models like Farabiulder’s group buying lean on exactly this effect — the discount recruits a new customer who already trusts the person who shared it.

Why Cohort Analysis Is Worth the Effort

Retention is where ecommerce profit actually lives. Classic Bain research popularized in Harvard Business Review found that a 5% increase in retention can raise profits between 25% and 95%, and that acquiring a new customer costs far more than keeping an existing one.

A cohort analysis turns that principle into a map. It tells you which month your customers leave, which channels send loyal buyers, and whether your changes are working — before the trend shows up in revenue. Run it monthly, watch the columns, and you stop guessing.

Start with a single exported CSV and the table structure above. You do not need a fancy tool to see your retention curve. You just need to look. To go deeper on the metrics it feeds, see our guide to a good repeat purchase rate or estimate acquisition economics with the CAC calculator.

Frequently Asked Questions

How do I do a customer cohort analysis for my Shopify store?

Group customers by the month of their first order, then track what percentage placed another order in each following month. Export your Shopify orders, build a table of first-order month versus months since, and calculate the repeat rate for each cell to see how each cohort retains over time.

What is a customer cohort in ecommerce?

A cohort is a group of customers who share a starting event, usually their first purchase in the same month. Tracking a cohort over time shows how many keep buying, which isolates retention from new-customer growth and reveals whether your store actually builds loyalty.

What is a good retention rate in a cohort analysis?

Most ecommerce retention curves flatten at roughly 15-25% of the original cohort after 12 months. High-frequency categories like beauty and consumables can hold above 40%, while luxury and high-ticket stores often settle near 8-15% because the repurchase cycle is naturally longer.

How is cohort analysis different from churn rate?

Churn rate is a single number for one period. Cohort analysis is a grid that follows each group of customers across many periods, so you can see when customers drop off and whether newer cohorts retain better or worse than older ones, not just the current total.