Sub topic 12
Pitfalls that distort funnel and cohort reports
This chapter assumes you can build a funnel and a retention table in Amplitude or Mixpanel. It also assumes you know what a conversion window is and how a cohort is defined. Here you learn the ways those reports show believable but wrong numbers, and the checks that catch them before you act.
A wrong funnel rarely looks wrong. It shows a clean chart, a percentage, and a trend line. The distortion comes from how identity, time, counting, and sample size were set up, so each check below targets one of those.
Identity: the same person counted twice
A funnel counts users, so it is only as good as the tool's idea of "one user". Both tools start with an anonymous ID (a device or browser ID) and switch to a known ID after login. If the link between the two breaks, one person becomes two.
Typical causes:
- Late identification. The visitor browses anonymously, signs up, and your code identifies them only on a later page. Early steps may sit under one ID and later steps under another.
- Reset on shared devices. Calling
reset()on logout starts a new anonymous identity. That is correct on a shared computer, but it splits one person's history if you call it by mistake, for example on every page load. - Cross-device journeys. A user starts on mobile web and finishes in the app. Unless both sides send the same user ID, the funnel shows a drop-off that did not happen.
- Server-side events with a different ID. Backend events often carry the user ID while browser events carry only the device ID. The funnel steps then belong to different identities.
import * as amplitude from '@amplitude/analytics-browser';
amplitude.init('YOUR_AMPLITUDE_API_KEY');
function onLogin(userId) {
// Set the user ID as soon as it is known, before the next tracked event.
amplitude.setUserId(userId);
}
function onLogout() {
// Clears the user ID and starts a new device ID.
// Call this only on a real logout, never on page load.
amplitude.reset();
}The Mixpanel equivalent is mixpanel.identify(userId) at login and mixpanel.reset() at logout. Mixpanel's identity merge links the anonymous ID to the user ID when you call identify. Check which identity model your project uses, because older projects behave differently.
The symptom of an identity split is a step-to-step conversion that is suspiciously low right where the ID changes, usually between "Sign Up Started" and "Sign Up Completed". To test it, compare the funnel's user count with a distinct count of your own user IDs from your database for the same period. A large gap points to identity.
Windows: choosing a number that shapes the answer
A conversion window is the time a user has to finish the funnel after starting it. The number you pick changes the conversion rate, and no value is neutral.
| Problem | What happens | Fix |
|---|---|---|
| Window too short | Slow but real converters count as drop-offs | Look at the time-to-convert distribution and cover most of it |
| Window too long | Users who convert after a long gap, perhaps due to unrelated reasons, inflate the rate | Match the window to the real decision cycle |
| Window changed between reports | Two funnels look different for no product reason | Record the window in every report title or note |
| Recent period | Users who started yesterday have not had the full window yet | Exclude the last window-length of data from the comparison |
The last row is the most common mistake. Take a 7-day window and a chart by start date. The most recent days will show low conversion because those users are still inside their window. The product did not get worse. The data is incomplete. When you see a drop at the right edge of a trend line, check this first.
Windows also differ in meaning. Some funnels measure the window from the first step, while others apply it between each pair of steps. Confirm which one your report uses before comparing two charts. The SQL below measures it from the first step, as in the earlier worked example, using t1 + INTERVAL '7 days'.
Step order and counting method
Funnel reports count in one of several ways, and the setting changes the totals.
- Ordered or loose steps. In a strictly ordered funnel, a user who completes step 2 and then step 1 does not count. In a loose or "any order" funnel, they do. Use ordered for flows with a real sequence, like checkout.
- Unique users or total events. Unique-user counting asks whether a person ever completed the funnel. Event or session counting asks how many times it happened. A user who retries three times is one conversion in the first and up to three attempts in the second.
- Skipped steps. Some tools let users enter at step 2 without doing step 1 in the report's window. If a step can be reached by a shortcut such as a deep link, the funnel may undercount that route or drop those users entirely.
- Repeated steps. If your event fires twice per action, a duplicate can satisfy two steps by itself in a loosely defined funnel. Check that event names for different steps are distinct.
When two teams quote different conversion rates for the "same" funnel, compare these three settings first: order, counting unit, and window.
Retention: cohorts that are too recent to judge
A retention table has one row per cohort and one column per period since the start. The newest rows have empty or partial cells at the right, because those users have not lived through the later periods yet. The danger is a curve that appears to fall off a cliff at the end. It only shows that time has not passed.
Two habits prevent this:
- Only compare cohorts at the same age. Compare week 4 of the January cohort with week 4 of the March cohort, and ignore columns that the newer cohort cannot have yet.
- Check whether the final period is partial. If today is Wednesday, the current week is incomplete, and a "week 0" or "latest week" figure will be low for that reason alone.
The query below computes week-1 retention (activity between day 7 and day 14 after a user's first event) and keeps only cohorts old enough to be fully measured. Run it as written against an events table with user_id and event_time columns.
WITH first_seen AS (
SELECT user_id,
MIN(event_time) AS t0,
DATE_TRUNC('week', MIN(event_time)) AS cohort_week
FROM events
GROUP BY user_id
),
week1 AS (
SELECT DISTINCT f.user_id
FROM first_seen f
JOIN events e
ON e.user_id = f.user_id
AND e.event_time >= f.t0 + INTERVAL '7 days'
AND e.event_time < f.t0 + INTERVAL '14 days'
)
SELECT
f.cohort_week,
COUNT(*) AS cohort_size,
COUNT(w.user_id) AS retained_week1,
ROUND(100.0 * COUNT(w.user_id) / COUNT(*), 1) AS retention_pct
FROM first_seen f
LEFT JOIN week1 w USING (user_id)
WHERE f.cohort_week + INTERVAL '21 days' <= NOW()
GROUP BY f.cohort_week
ORDER BY f.cohort_week;The WHERE clause is the guard. A cohort week starts at most 7 days before its last user arrives, and each user needs 14 days to be measured, so the cohort is complete after 21 days. Without that clause the newest rows would understate retention.
Also check which event defines "retained". If the return event is something automatic, such as a push-notification open or a background session, retention looks high without anyone using the product.
Sampling and small samples
Two separate problems both make numbers noisy.
Sampling by the tool. Some plans, query types, or very large datasets may be analyzed on a sample instead of every event. A sampled result is an estimate. The reports usually show an indicator when this happens, so look for it. If a number matters, rerun it on a shorter range or a narrower filter so it is computed on all the data.
Small groups. A funnel broken down by plan, country, and source can leave a segment with 20 users. A change from 40% to 50% in that segment is two people. Check the user count at step 1 for every segment before you compare rates. As a rough rule, treat segments with fewer than a few hundred starters as directional only, and do not rank them.
Comparison traps
Two groups can differ for reasons other than the one you are testing.
- Composition shift. Overall conversion can fall while every segment improves, because the mix moved toward a lower-converting segment, such as a new paid-traffic source. Break the funnel down before drawing a conclusion.
- Survivorship in cohorts. A cohort defined as "users who did X" only includes people who got that far. Comparing them with everyone else makes the feature look better than it is. Users who engage a lot are more likely to find the feature, so the feature did not necessarily cause the engagement.
- Dynamic versus static cohorts. A dynamic cohort recalculates, so the same chart can change tomorrow. A static cohort is a fixed list. Use static cohorts when you need a result to stay reproducible.
- Time zones and calendars. Dates are cut by the project's time zone. A mismatch between the report and your warehouse shifts users across day boundaries.
A pre-read checklist
Summary
Most distortions fall into five groups: split identities, a window that cuts off recent users, mismatched order or counting settings, cohorts too young to measure, and samples too small or sampled by the tool. Run the checklist before you explain a change, and write the window, counting method, and step 1 count beside every figure you share.
Exercise
Your 7-day-window funnel shows conversion falling from 31% to 18% for users who started in the last 4 days of the chart, while earlier days stay near 31%. Name the most likely cause and one way to confirm it.
Show answer
The most recent starters have not had their full 7 days to convert, so the report undercounts them. Confirm it by looking at the same days a week later (the rate should rise toward 31%), or by excluding the last 7 days from the date range and checking that the drop disappears.
Exercise
A funnel broken down by country shows Norway converting at 60% and Germany at 35%. Norway has 25 users at step 1 and Germany has 4,000. What should you do before reporting that Norway performs better?
Show answer
Check the sample size. With 25 users, 60% means about 15 people, and a few users either way change the rate a lot, so the figure is too noisy to rank against Germany. Report the counts next to the rates, collect more data or widen the date range, and treat Norway as directional only.