Sub topic 10
Reading retention tables and curves
This chapter assumes you already know what events, properties, and user identity are, and that you can read a basic funnel. It also assumes you know what a cohort is, meaning a group of users who share a defining behavior or property. Here you will learn how a retention report is built, how to read its table and its curve, and which mistakes to avoid.
What a retention report measures
A funnel asks whether users complete a sequence of steps. A retention report asks a different question: of the users who did something once, how many came back to do something again, and when?
Every retention report has three parts:
- The starting event. This puts a user into a cohort. Amplitude calls it the "starting event". Mixpanel calls it the "first event" or "born event".
- The return event. This is the event that counts as coming back. Amplitude calls it the "return event". Mixpanel calls it the "return event" too.
- The time unit. The report counts periods after the start, usually days, weeks, or months. Period 0 is the period in which the user did the starting event.
Users are grouped into cohorts by the period in which they did the starting event. For example, everyone who signed up in the week of 3 March forms one weekly cohort. The report then shows what share of that cohort did the return event in week 1, week 2, and so on.
Reading the retention table
The table has one row per cohort and one column per period since the start. The first column is the cohort size. The other columns are percentages, or counts if you switch the display.
| Cohort (signup week) | Users | Week 0 | Week 1 | Week 2 | Week 3 | Week 4 |
|---|---|---|---|---|---|---|
| 3 Mar | 1,200 | 100% | 38% | 27% | 24% | 22% |
| 10 Mar | 1,350 | 100% | 41% | 30% | 26% | |
| 17 Mar | 1,100 | 100% | 36% | 25% | ||
| 24 Mar | 1,400 | 100% | 40% | |||
| 31 Mar | 900 | 100% |
You can read this table in three ways.
- Across a row. This shows how one cohort decays over time. The 3 March cohort keeps 38% after one week and 22% after four.
- Down a column. This compares cohorts at the same age. Week 1 retention is 38%, 41%, 36%, and 40%. If a product change shipped on 10 March, the 41% might be an effect worth checking.
- Along the diagonal edge. The empty cells at the bottom right are periods that have not happened yet. They are not zeros.
The triangle shape
Because recent cohorts have had less time to return, the table is always a triangle. The newest cohort has only its week 0 value. This matters when you compare cohorts, and the pitfalls section below returns to it.
Reading the retention curve
The curve plots the same data as lines. The x-axis is the period since the start, and the y-axis is the percentage retained. Each line is a cohort, or the average of all cohorts.
Look at these features:
- The drop from period 0 to period 1. This is usually the steepest part of the curve. It tells you about the first experience.
- The plateau. If the curve flattens at, say, 20%, then about one in five users becomes a long-term user. A higher plateau usually matters more than a better week 1 number.
- Whether the curve ever flattens. A curve that keeps heading toward zero suggests the product has not found a recurring use for these users.
Choosing the return event and the time unit
The return event decides what "retained" means. Two choices give very different answers.
- Any event. This counts a user as retained if they did anything. It is easy to satisfy. A push notification that opens the app can make a user look retained, even if they did nothing useful.
- A specific event tied to value. Examples are "Message Sent" for a chat app or "Report Viewed" for an analytics product. This is a stricter and more honest measure.
Match the time unit to the natural usage rhythm. A banking app that people open daily suits day-based retention. A tax product that people use once a year will look terrible in weekly retention, and the right view might be monthly or yearly.
Retention types: classic, bracket, and rolling
Both tools offer more than one way to count a return. The names differ, so check the definition before you compare numbers.
| Method | A user counts as retained in period N if... | Typical use |
|---|---|---|
| Exact period (N-day or "on day N") | they did the return event during exactly period N | Products used daily |
| Bracket / range | they did the return event anywhere within a range such as days 4 to 7 | Products with irregular use |
| Unbounded / rolling ("on or after") | they did the return event in period N or any later period | Products with long gaps between uses |
Exact-period retention gives the lowest numbers. Unbounded retention gives numbers that can only stay flat or fall as N grows, so the curve is smoother and more forgiving. Neither is wrong, but a number from one method cannot be compared with a number from another.
What the report does behind the scenes
The retention report is a cohort calculation. The SQL below shows the logic for weekly retention with a starting event of "Sign Up Completed" and a return event of any event, using exact-period counting. It uses Postgres syntax and the same events table shape as the funnel query earlier in the tutorial.
WITH cohorts AS (
SELECT user_id,
DATE_TRUNC('week', MIN(event_time)) AS cohort_week
FROM events
WHERE event_name = 'Sign Up Completed'
GROUP BY user_id
),
activity AS (
SELECT DISTINCT
c.user_id,
c.cohort_week,
(DATE_TRUNC('week', e.event_time)::date - c.cohort_week::date) / 7 AS week_n
FROM cohorts c
JOIN events e
ON e.user_id = c.user_id
AND e.event_time >= c.cohort_week
)
SELECT cohort_week::date AS cohort_week,
COUNT(DISTINCT user_id) FILTER (WHERE week_n = 0) AS cohort_size,
ROUND(100.0 * COUNT(DISTINCT user_id) FILTER (WHERE week_n = 1)
/ NULLIF(COUNT(DISTINCT user_id) FILTER (WHERE week_n = 0), 0), 1) AS week_1_pct,
ROUND(100.0 * COUNT(DISTINCT user_id) FILTER (WHERE week_n = 2)
/ NULLIF(COUNT(DISTINCT user_id) FILTER (WHERE week_n = 0), 0), 1) AS week_2_pct
FROM activity
GROUP BY cohort_week
ORDER BY cohort_week;Three details in this query explain behavior you see in the tools:
- Each user is assigned to one cohort by their first starting event (
MIN(event_time)). A user cannot appear in two cohorts. - The denominator is the week 0 cohort size, so each percentage is a share of the original cohort.
- Weeks are cut at calendar boundaries with
DATE_TRUNC. A user who signs up on Sunday gets a full week 0 that is only a day long. Both tools let you choose the week start day, and the choice changes your numbers.
Filters, breakdowns, and cohorts in retention
Retention reports accept the same segmentation tools as funnels. You can filter the starting event, filter the return event, break down by a property, or compare behavioral cohorts. A common use is to compare retention for users who did an activation action against users who did not.
Take care with the property you break down by. If you break down by a property that changes over time, such as plan, check whether the tool reads its value at the time of the starting event or at the time of the return event. This differs by tool and by setting, and it can move users between groups.
Amplitude and Mixpanel terms
| Idea | Amplitude | Mixpanel |
|---|---|---|
| Report name | Retention analysis | Retention |
| Starting event | Starting event | First event / born event |
| Return event | Return event | Return event |
| Exact-period counting | N-day retention | Retention (default counting) |
| Rolling counting | Unbounded retention | "On or after" style counting |
| Range counting | Bracket retention | Custom buckets |
| Output views | Retention curve, table, and others | Curve, table, and others |
Menu names change between releases, so treat this table as a map and confirm the setting in the product you use.
Pitfalls specific to retention
- Reading immature cohorts as bad. The newest cohort has fewer periods, and its latest period may be partial. A dip in the final column of a row often reflects an incomplete period, not user behavior. Compare cohorts only at ages they have all reached.
- Mixing counting methods. Comparing an exact-period figure from one report with an unbounded figure from another makes retention look better or worse than it is.
- Using a weak return event. Notifications, emails, or background events that fire without user action inflate retention.
- Identity splits. If a user is anonymous before sign-up and identified after, the same person can look like a new user in the return period or be missing from it. Check how the tool merges identities.
- Small cohorts. A cohort of 40 users moves by 2.5 points for each user who returns. Wide swings in a small cohort are noise. Look at counts, not only percentages.
- Averaging over mixed cohorts. An average curve hides a shift in user quality. If a paid campaign brought in low-intent users in one month, the blended curve can fall even when the product did not change.
- Survivorship in the plateau. A flat curve can mean a loyal core, but it can also mean the weaker users left early and the remainder is a small, selected group. Look at the cohort size, not just the plateau height.
A worked reading
Suppose the table at the top of this chapter is for a note-taking app, and a new onboarding checklist shipped on 17 March.
- Week 1 retention for the 17 March cohort is 36%, lower than the 10 March cohort at 41%. The 24 March cohort is 40%.
- Cohort sizes are over 1,000, so a 5-point gap is probably more than noise, but the 17 March dip is not followed by a lasting change.
- The week 2 value for 17 March is 25%, against 30% and 27% for the earlier cohorts. This is the lowest in the table, and the 24 March cohort has no week 2 value yet.
- Conclusion: the data does not show that the checklist helped. It shows one weak cohort and one recovering cohort. Wait for the 24 March and 31 March cohorts to age before deciding, and check whether a marketing campaign changed the mix of users in the week of 17 March.
This habit of listing what the data does and does not show feeds the last chapter on turning findings into hypotheses.
Exercise
A weekly retention table shows the newest cohort (signed up this week) with 100% in week 0 and an empty cell in week 1. A colleague says "the newest cohort has 0% retention in week 1, so our latest release is a disaster." What is wrong with this reading, and what would you do instead?
Show answer
The empty cell is a period that has not happened yet, so it is missing data, not zero retention. Also, week 0 of the newest cohort is partial. Compare cohorts only at ages they have all reached, for example week 1 retention for older cohorts. To judge the release, wait until the newest cohort has completed week 1, or use a daily time unit to get an earlier signal. Also check the cohort size and whether the user mix changed.
Exercise
Retention under "any event" is 45% at week 4, but retention under the specific event "Report Viewed" is 18%. Which number better reflects product value, and why might the gap be large?
Show answer
The 18% figure better reflects value because it requires the user to do the core action. The "any event" figure can include events that fire without real use, such as notification opens, background sessions, or page loads from emails. A large gap suggests many users return but do not get value, which is a finding worth investigating.
Exercise
You switch a retention report from exact-period counting to unbounded ("on or after") counting and the week 3 number rises from 22% to 31%. Did retention improve?
Show answer
No. The product did not change. Unbounded counting also counts users who return in week 3 or any later week, so it is always at least as high as exact-period counting. Only compare numbers produced with the same counting method.