E-commerce Cohort Analysis: Tracking Customer Behavior Over Time
How to use cohort analysis to understand customer retention, lifetime value trends, and behavioral patterns across customer groups.
Sara
Co-founder & CTO

Aggregate metrics lie. Your overall retention rate might look healthy while hiding that recent customers churn faster than older ones. Your average LTV might stay flat while acquisition quality deteriorates. Cohort analysis cuts through these illusions by grouping customers based on when they joined - revealing trends that aggregate data obscures.
Harvard Business Review research shows that increasing customer retention by 5% can boost profits 25-95%. Cohort analysis tells you whether your retention is actually improving or if you're just growing fast enough to mask the problem.
What Is Cohort Analysis?
The Basic Concept
A cohort is a group of customers who share a common characteristic during a specific time period - usually their first purchase date.
**Example cohorts:**
- January 2026 cohort: All customers who made their first purchase in January 2026
- Q1 2026 cohort: All customers who converted in the first quarter
- Black Friday 2025 cohort: Customers acquired during a specific campaign
By tracking each cohort separately over time, you see how different groups of customers behave - not just how "customers" behave on average.
Why Cohorts Matter
**Problem with aggregate metrics:**
Your 30-day retention rate is 25%. Good or bad? Impossible to know without context. If January's cohort had 30% retention and March's cohort has 20% retention, you have a deteriorating trend hidden in that 25% average.
**What cohorts reveal:**
- Are newer customers more or less valuable than older ones?
- Did a product change improve or hurt retention?
- Which acquisition channels bring customers who stick around?
- Is seasonality affecting customer quality?
Types of E-commerce Cohort Analysis
Acquisition Cohorts
Group customers by when they first purchased. This is the most common and useful cohort type.
**Tracks:** Retention over time, repeat purchase rates, cumulative LTV by cohort.
**Reveals:** Whether customer quality is improving or declining, impact of changes on new customer behavior.
Behavioral Cohorts
Group customers by what they did, not when they joined.
**Examples:**
- Customers who bought product X
- Customers who used discount code
- Customers who came from Facebook ads
**Tracks:** How specific behaviors correlate with long-term value.
**Reveals:** Which products, promotions, or channels create loyal customers.
Segment Cohorts
Group by customer characteristics.
**Examples:**
- High-value first purchase ($100+) vs low-value
- Single product vs multi-product first order
- Mobile vs desktop customers
**Tracks:** How segments differ in long-term behavior.
**Reveals:** Which customer types to prioritize for acquisition.
Building a Cohort Analysis
Step 1: Define Your Cohort Period
**Monthly cohorts** work for most e-commerce businesses. You need enough customers per cohort for statistical significance but enough granularity to spot trends.
For high-volume stores, weekly cohorts may work. For smaller stores or long purchase cycles, quarterly might be appropriate.
Step 2: Choose Your Metric
**Common cohort metrics:**
**Retention rate:** Percentage of cohort that purchases again in subsequent periods.
**Repeat purchase rate:** Cumulative percentage that has made 2+ purchases over time.
**Cumulative revenue:** Total revenue from cohort over time (building toward LTV).
**Average orders per customer:** Order frequency by cohort age.
Step 3: Create the Cohort Table
The classic cohort visualization is a triangular table:
Rows represent cohorts (e.g., January, February, March).
Columns represent time periods since first purchase (Month 1, Month 2, Month 3...).
Cells contain your metric value.
**Reading the table:**
- **Read across rows:** See how one cohort ages over time
- **Read down columns:** Compare how different cohorts perform at the same age
- **Look for patterns:** Improving trend? Declining? Seasonal effects?
Step 4: Calculate Metrics
**Retention example:**
January cohort has 1,000 customers.
In February (Month 1), 200 make another purchase = 20% retention.
In March (Month 2), 150 make another purchase = 15% retention.
In April (Month 3), 120 make another purchase = 12% retention.
**Cumulative revenue example:**
January cohort generates $50,000 in first month.
By end of Month 2: $62,000 cumulative.
By end of Month 3: $71,000 cumulative.
This builds toward your customer lifetime value calculation.
Analyzing Cohort Data
Healthy Patterns
**Improving cohorts:** Newer cohorts have better retention than older ones at the same age. Your product or experience is improving.
**Consistent performance:** All cohorts follow similar curves. Predictable business that scales.
**Strong early repeat:** High retention in Months 1-2, then gradual decline. Customers who repeat early tend to stay.
Warning Signs
**Deteriorating cohorts:** Newer cohorts perform worse than older ones. Check: acquisition quality declining? Product problems? Competition?
**Cliff drops:** Sharp retention decline at specific month. Investigate what causes churn at that point.
**Channel divergence:** Some acquisition channels produce cohorts with much worse retention. Revisit channel strategy.
Actionable Insights
**Finding optimal repurchase window:**
If most repeat purchases happen within 30 days or not at all, focus retention efforts on that window. After 30 days, customers may need reactivation campaigns rather than nurture sequences.
**Identifying quality segments:**
Cohorts of customers who bought full price might retain better than discount buyers. This informs promotional strategy.
**Measuring impact of changes:**
Launched a new loyalty program in March? Compare March cohort retention to February. Clear before/after comparison.
Cohort Analysis for LTV
Building LTV Curves
Plot cumulative revenue by cohort over time. This shows how LTV builds.
**What to look for:**
- **Curve shape:** Steep early growth that flattens? Steady linear growth? Understanding the curve helps forecast.
- **Cohort differences:** Are newer cohorts on track to match or exceed older ones?
- **Payback period:** When does cumulative revenue exceed customer acquisition cost?
Projecting Future LTV
With enough cohort history, you can project where younger cohorts will end up.
If your 12-month-old cohorts typically reach 80% of their ultimate LTV by month 12, you can estimate where the 6-month cohort is heading.
This informs how much you can afford for acquisition today.
LTV by Acquisition Source
Combine cohort analysis with attribution data.
Cohorts from organic search might have 30% higher LTV than paid social cohorts. This changes how you value each channel - even if paid social has lower CAC, the LTV difference might make organic more valuable.
Common Cohort Analysis Mistakes
Too Small Cohorts
If your January cohort only has 50 customers, the data will be noisy. A few random churns or big spenders skew everything.
**Fix:** Use longer time periods (quarterly instead of monthly) or combine similar cohorts for analysis.
Ignoring Seasonality
Customers acquired during holiday sales might behave differently than regular customers. Comparing December cohort to February cohort without accounting for this misleads.
**Fix:** Compare year-over-year (December 2025 vs December 2024) or segment by acquisition type.
Only Looking at Retention
Retention matters, but retained customers who spend less are a problem too. A cohort with 90% retention but declining order values might be worse than one with 80% retention and growing orders.
**Fix:** Track multiple metrics - retention, order frequency, and revenue.
Not Acting on Insights
The best cohort analysis is useless if you don't change behavior based on findings.
**Fix:** Connect insights to actions. If March cohort underperforms, investigate why and fix it for April.
Tools for Cohort Analysis
Spreadsheet Analysis
For basic cohort analysis, spreadsheets work well. Export customer and order data, build cohort tables with pivot tables.
**Pros:** Flexible, transparent, no additional cost.
**Cons:** Manual data prep, limited visualization.
Analytics Platforms
Arktis tracks cohort behavior automatically, connecting attribution with lifetime behavior to show which acquisition sources create valuable long-term customers.
Google Analytics 4 offers basic cohort reports for web behavior, though connecting to purchase data requires additional setup.
BI Tools
Tools like Looker, Tableau, or Metabase can build cohort dashboards from your database. More powerful but requires technical setup.
E-commerce Specific
Platforms like Lifetimely, Peel, and Segments specialize in e-commerce cohort analysis, often with Shopify integrations.
Getting Started
**Week 1:** Export your customer and order data. Build a basic monthly acquisition cohort table for the past 12 months.
**Week 2:** Calculate retention rates and cumulative revenue by cohort. Look for patterns - improving, declining, or stable?
**Week 3:** Segment by one dimension (acquisition channel or first purchase value). Do certain segments have better cohorts?
**Week 4:** Establish ongoing tracking. Review cohort performance monthly and investigate significant changes.
Cohort analysis is a skill that improves with practice. Start simple, learn what patterns matter for your business, then add complexity.
Sources
1. Harvard Business Review, "The Value of Keeping the Right Customers"
2. Shopify, "Cohort Analysis Guide"
Frequently Asked Questions
How many customers do I need for cohort analysis?
At least 100 customers per cohort for directional insights, 500+ for statistical confidence. If you have fewer, use longer time periods (quarterly instead of monthly) or focus on cumulative analysis across all customers rather than granular cohorts.
What's more important - retention rate or LTV?
LTV is the ultimate metric because it accounts for both retention and spending behavior. A cohort with 50% retention but high average order value might outperform one with 70% retention and low orders. Track both, but optimize for LTV.
How do I compare cohorts fairly when my business is growing?
Use percentages and averages rather than absolute numbers. A newer cohort might have more total revenue simply because it's larger. Compare retention rates, average revenue per customer, and relative metrics that normalize for cohort size.
Should I include one-time buyers in cohort analysis?
Yes, but segment them. One-time buyers affect your retention rates, and understanding what percentage of each cohort never returns is valuable. You might analyze 'all customers' and 'repeat buyers only' separately to get different perspectives.
How far back should cohort analysis go?
As far as you have reliable data, but focus analysis on the past 12-24 months. Older cohorts are useful for understanding long-term LTV curves, but customer behavior changes over time, so recent cohorts are more predictive of future performance.
Free tools for this topic
From the blog
Try Arktis free for 7 days
Attribution tracking, session recordings, and AI automation in one platform. Set up in 2 minutes, free for 7 days.
Start 7-day free trialWritten by
Sara
Co-founder & CTO
Sara architects Arktis's technical infrastructure, specializing in AI agents and real-time data processing systems.