Sub topic 3
Funnel basics: steps and conversion rate
A funnel report takes an ordered list of events and shows how many users make it from each step to the next. This chapter covers how that number is computed, how to read it, and the mistakes that most often distort it.
Prerequisites
This chapter assumes you know three things:
- What an event and an event property are (covered in the first chapter of this tutorial).
- How the tool decides who counts as one user (covered in the second chapter).
- How to compute a percentage and a ratio.
SQL is optional. It appears only to show what the report does behind the scenes.
What a funnel measures
A funnel is a sequence of two or more events that you expect a user to perform in order. The report counts how many users completed each step. It then expresses each count as a share of an earlier count.
Take a sign-up flow with two events: Sign Up Started and Sign Up Completed. Suppose 1,000 users fired the first event, and 420 of them later fired the second. The funnel shows two bars, 1,000 and 420, and a conversion rate of 42%.
The funnel only answers "what share of users who did step 1 later did step 2?" It does not say why users left, and it does not say what they did instead.
The raw material: events with shared properties
A funnel is only as useful as the events behind it. The examples below send two events that carry the same properties, plan and source. A shared property lets you later break the funnel down by it and compare groups.
Amplitude browser SDK:
import * as amplitude from '@amplitude/analytics-browser';
amplitude.init('YOUR_AMPLITUDE_API_KEY');
amplitude.setUserId('user_123');
amplitude.track('Sign Up Started', { plan: 'pro', source: 'pricing_page' });
amplitude.track('Sign Up Completed', { plan: 'pro', source: 'pricing_page' });Mixpanel browser SDK:
import mixpanel from 'mixpanel-browser';
mixpanel.init('YOUR_PROJECT_TOKEN');
mixpanel.identify('user_123');
mixpanel.track('Sign Up Started', { plan: 'pro', source: 'pricing_page' });
mixpanel.track('Sign Up Completed', { plan: 'pro', source: 'pricing_page' });Both snippets do the same job. setUserId in Amplitude and identify in Mixpanel attach a known user ID to the events. Without it, the two events might be tied to different anonymous identities, and the funnel would count them as two different people. Name events consistently too. Sign Up Completed and Signup Completed are two separate events to both tools.
Anatomy of a funnel
Each funnel has the same parts.
| Part | Meaning | Example |
|---|---|---|
| Step | One event in the ordered list, optionally with filters | `Sign Up Started` |
| Step count | Users (or sessions, or event totals) who reached that step | 420 |
| Step conversion | Share of the previous step that reached this step | 420 / 1,000 = 42% |
| Overall conversion | Share of the first step that reached the last step | Last step / first step |
| Drop-off | Users who reached a step but not the next one | 1,000 − 420 = 580 |
| Conversion window | How long a user has to finish the funnel | 7 days |
With three or more steps, step conversion and overall conversion differ. Imagine a four-step checkout funnel:
| Step | Users | Step conversion | Overall conversion |
|---|---|---|---|
| 1. View Product | 10,000 | n/a | 100% |
| 2. Add to Cart | 2,500 | 25% | 25% |
| 3. Start Checkout | 1,500 | 60% | 15% |
| 4. Purchase | 1,050 | 70% | 10.5% |
Step conversion tells you where a single transition is weak. Overall conversion tells you how the whole flow performs. A step at 25% can still be healthy if that is normal for product page views. A step at 70% can be a big problem if checkout is supposed to be close to automatic.
What the report does behind the scenes
A funnel report is a query over the events table. The SQL below computes a two-step, unique-user, ordered funnel with a 7-day conversion window. It is a Postgres-style query, and it shows the logic that Amplitude and Mixpanel run at much larger scale.
WITH started AS (
SELECT user_id, MIN(event_time) AS t1
FROM events
WHERE event_name = 'Sign Up Started'
GROUP BY user_id
),
completed AS (
SELECT s.user_id, MIN(e.event_time) AS t2
FROM started s
JOIN events e
ON e.user_id = s.user_id
AND e.event_name = 'Sign Up Completed'
AND e.event_time >= s.t1
AND e.event_time < s.t1 + INTERVAL '7 days'
GROUP BY s.user_id
)
SELECT
(SELECT COUNT(*) FROM started) AS started_users,
(SELECT COUNT(*) FROM completed) AS completed_users,
ROUND(100.0 * (SELECT COUNT(*) FROM completed)
/ NULLIF((SELECT COUNT(*) FROM started), 0), 1) AS conversion_pct;Read the query in four parts:
startedfinds each user's firstSign Up Startedtime. UsingMINandGROUP BY user_idmeans each person is counted once.completedjoins back to the events table. It keeps onlySign Up Completedevents that happen at or after the start time and before the 7-day limit.- The
e.event_time >= s.t1condition enforces order. A completion that happened before the start does not count. NULLIF(..., 0)avoids a divide-by-zero error when nobody started.
The same query shows why the settings of a funnel change its numbers. Change 7 days to 1 day and the conversion falls. Change COUNT(*) over users to a count over events and the numbers change meaning. Later chapters treat the window and counting method in detail. For now, note that every funnel result depends on them.
How to build a funnel in the tools
The steps are almost the same in both tools, though the labels differ.
- Create a new funnel analysis. In Amplitude, this is the Funnel Analysis chart. In Mixpanel, it is the Funnels report.
- Add the events in the order you expect them. Two events is the minimum.
- Set a conversion window that fits the behavior. A card payment may finish in minutes. A B2B trial may take weeks.
- Choose the date range, which controls which starting events are included.
- Read step counts, step conversion, and overall conversion before adding any breakdowns.
Resist adding breakdowns and filters on the first run. First check that the totals look reasonable. If step 1 has far fewer users than you expect, the problem is probably in the instrumentation or the event name, not in user behavior.
Reading a funnel correctly
Start with the denominator
Every conversion rate is a ratio, and the denominator decides what it means. Overall conversion in most funnel reports is last step divided by first step. Step conversion is a step divided by the one before it. Always check which one you are looking at before you compare numbers from two reports.
Check the date range against the window
Funnels count users who started in the selected date range, then look forward through the conversion window. Suppose you have a 7-day window and your date range ends yesterday. Users who started yesterday have had only one day to finish. They may count as non-converters when they simply have not had time. The most recent days will therefore look worse than they are. Exclude them or end the range at least one full window before today.
Compare like with like
A 42% rate means little alone. Compare it against the same funnel in an earlier period, against a different segment, or against a target. Make sure that the window, step definitions, and counting method are identical in both. A difference caused by a changed setting is not a product change.
Watch the sample size
A funnel with 50 users at the top has wide uncertainty. If 21 of 50 convert (42%), the true rate could plausibly be anywhere from about 28% to 57%. A move from 42% to 46% on that sample is noise. Prefer a larger date range or fewer segments when numbers are small.
Common errors
| Symptom | Likely cause | What to check |
|---|---|---|
| Step 1 count is lower than expected | Event name typo, missing SDK call, or an event filter that is too strict | Look up the event in the tool's event list and compare volumes |
| Conversion is close to 0% between two obviously linked steps | Events tied to different user identities | Confirm that `setUserId` or `identify` runs before both events |
| Conversion is over 100% | Counting events instead of unique users, or a funnel that allows steps in any order | Check the counting method and step order settings |
| Recent days look much worse | Window still open for recent starters | Shorten the date range or wait |
| Two reports disagree | Different windows, filters, or time zones | Compare each setting side by side |
| Last step is higher than a middle step | Users enter the funnel partway through, and order is not enforced | Review step order and whether the middle step is always required |
Edge cases to know about
- Repeated step 1. A user may fire
Sign Up Startedfive times. Under a unique-user count they are one person. Under an event total they are five. The query above usesMIN(event_time)so each person is anchored to their first attempt. - Multiple completions. The same logic applies to the last step. A user who completes twice still counts once in a unique-user funnel.
- Skipped steps. A user who buys without ever firing
Add to Cart(for example through a "buy now" button) does not count in a strict ordered funnel. The funnel then understates how many people bought. This is a tracking and design question, not a user-behavior one. - Optional steps. If a step is not always required, build two funnels, one with it and one without, rather than forcing one funnel to cover both paths.
- Time zones. Day boundaries follow the project's time zone setting. Two people looking at the same report with different project settings can see different daily numbers.
A short worked example
A team measures its sign-up funnel for the last full week, using a 7-day window.
| Step | Users | Step conversion |
|---|---|---|
| Sign Up Started | 2,000 | n/a |
| Sign Up Completed | 640 | 32% |
Breaking down by source gives:
| Source | Started | Completed | Conversion |
|---|---|---|---|
| pricing_page | 600 | 270 | 45% |
| blog | 1,100 | 220 | 20% |
| 300 | 150 | 50% |
The overall 32% hides a wide spread. Blog visitors are more than half of all starters and convert at 20%, which pulls the average down. Pricing-page and email visitors convert at 45% and 50%. This does not yet explain why blog visitors convert less. Blog visitors may be earlier in their decision. The form may not match what the blog post promised. The next chapters cover how to break funnels down fairly and how to turn a finding like this into a testable hypothesis.
Key points
- A funnel counts users who performed an ordered list of events, then shows step conversion and overall conversion.
- Step conversion divides by the previous step. Overall conversion divides by the first step.
- The conversion window, step order, and counting method all change the numbers, so keep them the same when comparing.
- Recent starters have had less time to convert, so the latest days look worse when the window is long.
- Consistent event names and a consistent user ID are required before any funnel can be trusted.
Exercise
A funnel has three steps: Visit Pricing (4,000 users), Start Trial (800 users), Add Payment Method (200 users). Calculate the step conversion for each transition and the overall conversion. Then say which transition has the larger drop-off in absolute users.
Show answer
Visit Pricing to Start Trial: 800 / 4,000 = 20%. Start Trial to Add Payment Method: 200 / 800 = 25%. Overall conversion: 200 / 4,000 = 5%. The first transition loses 3,200 users and the second loses 600, so the first has the larger absolute drop-off, even though its step conversion is lower by only five points.
Exercise
A product manager sets a 14-day conversion window, selects the date range of the last 7 days ending today, and reports that conversion has fallen from 38% to 22% compared with the previous month. Give two reasons the comparison may be misleading and one fix.
Show answer
First, users who started in the last days have not had 14 days to convert, so their completions are still arriving and the recent rate is biased low. Second, the comparison may not be like with like if any window, filter, or counting setting differs from the earlier report. A fix is to end the date range at least 14 days before today, then compare it to an equally sized earlier range with identical settings.
Exercise
A funnel from Add to Cart to Purchase shows a conversion of 3%, but the finance team says that nearly 30% of cart users buy. Name two causes to investigate in the tracking setup.
Show answer
The events may be attached to different identities, for example if the user ID is set after Add to Cart fires or only after login, so the funnel cannot link the cart and purchase to one person. Alternatively, the Purchase event may be sent from a server with a different user ID or event name than the browser events, or some purchases may skip the Add to Cart event, for example through a "buy now" button.