Sub topic 5
Step order and how conversions are counted
This chapter assumes you know what events and properties are, how a funnel's steps and conversion rate work, and how a conversion window limits the time between steps. If a funnel number surprises you, the cause is often step order or the counting method. Both change the result without changing the data.
What "step order" means
A funnel is a list of events in sequence. Each tool lets you decide how strictly that sequence is enforced. The choice decides which users count as converted.
Take a three-step funnel: Sign Up Started, Email Verified, Sign Up Completed. Consider three users:
| User | Events in time order |
|---|---|
| A | Sign Up Started, Email Verified, Sign Up Completed |
| B | Sign Up Started, Sign Up Completed, Email Verified |
| C | Sign Up Started, Sign Up Started, Email Verified, Sign Up Completed |
User A converts under any setting. User B did all three events, but not in the funnel's order. Whether B counts depends on the ordering mode.
Ordering modes
Amplitude calls this setting the order of steps. Mixpanel calls it the funnel order. The names differ, but the modes are similar.
- This order (strict sequence). The steps must happen in the stated order. Other events may happen in between. Both tools use this mode by default. User B fails at step 3, because
Sign Up Completedhappened beforeEmail Verified. - Any order. The user must do every step within the window, in any sequence. User B converts. Use this when the steps are independent tasks, such as "Add Profile Photo", "Add Bio", and "Connect Account", and the order doesn't matter to you.
- Exact order (Mixpanel). No other events may appear between two steps. This is very strict, because real users generate many events such as page views and clicks. Use it only when you have a tightly controlled flow and you know no stray events fire.
In Amplitude, the closest equivalent to exact order is a sequence setting where you can require that a step happen "directly after" another. Check your version of the product, because the exact labels change between releases.
What happens at each step
A funnel report does not look at all events at once. It follows a simple procedure for each user:
- Find the first time the user did step 1. This opens a funnel attempt and starts the conversion window clock.
- Look for step 2 after step 1, inside the window.
- Continue for each later step.
- Stop at the first step the user cannot reach. The user counts as dropped there.
Two details matter. First, only the users who completed step 1 are in the funnel at all. Someone who did step 3 but never did step 1 is invisible in a strict funnel. Second, the conversion rate of each step is usually calculated against the first step, while the step-to-step rate is calculated against the previous step. Make sure you know which one you are reading.
Counting methods: what is a conversion?
Order decides who qualifies. The counting method decides what you count. Both tools offer these approaches.
- Unique users. Each person counts once. If a user completes the funnel five times, it is still one conversion. This is the default in both tools and the right choice for most questions, such as "what share of new visitors sign up?"
- Total conversions (Amplitude: Event totals). Each completed pass through the funnel counts. A user who goes through the funnel five times counts five times. Use this for repeatable behavior, such as purchases, where you care about volume.
- Active groups or sessions. Both tools can count other units. Amplitude can count by sessions. Both can count by a group, such as an account or company, if group analytics is set up. A funnel counted by account asks "what share of companies did this?" instead of "what share of people?"
The unit you pick changes the denominator, so the same data gives different percentages. A company with ten users, one of whom converts, is one converted account but a 10% user conversion rate.
How repeats are handled
Repeated events create most of the confusion. Look again at User C, who fired Sign Up Started twice. With unique-user counting, C is one user, and the funnel uses their first qualifying attempt. With total-conversion counting, the tool looks for non-overlapping passes through the funnel. A user with two starts and one completion has one conversion, not two.
You can see this behavior in a query. The SQL below counts both unique converting users and total conversions using the same events table as the earlier example. It uses a simple rule: each Sign Up Completed event is a conversion if there is a Sign Up Started event for the same user earlier, within 7 days.
SELECT
COUNT(DISTINCT c.user_id) AS unique_converted_users,
COUNT(*) AS completion_events
FROM events c
WHERE c.event_name = 'Sign Up Completed'
AND EXISTS (
SELECT 1
FROM events s
WHERE s.user_id = c.user_id
AND s.event_name = 'Sign Up Started'
AND s.event_time <= c.event_time
AND s.event_time > c.event_time - INTERVAL '7 days'
);If the two numbers differ, some users completed more than once. That is a signal about your data and about which counting method matches your question. This query is a simplification. A real funnel engine pairs each start with at most one completion, so it can give a lower total than this query on repeated events.
First-touch matching and the "which start?" question
When a user has several qualifying step 1 events, the tool must choose one to anchor the window. In the typical unique-user funnel it uses the first one. This has consequences.
Suppose a user starts sign-up on day 1, abandons it, returns on day 20, and completes it the same day. With a 7-day window anchored on day 1, this user is a drop-off. The day 20 attempt would have converted on its own, but the funnel does not restart the clock for unique-user counting. Total-conversion counting is more likely to catch the second attempt as a fresh pass.
This is why a long-running funnel can look worse when counted by unique users than by total conversions, even though the user did succeed in the end. When you see a gap, ask whether returning users are being anchored on an old first step.
Sending the events correctly
Order and counting depend on clean event data. Both examples below send the two events with a shared property, using one identified user. The funnel matches the events through the user ID, so both must be tied to the same person.
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' });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 calls happen within milliseconds here, so only the event timestamps decide order. If two events share the same timestamp, the tool's tie-breaking is not something you should rely on. In real code, send events when the action happens, and avoid batching that could rewrite their times.
Common errors
- Events arriving out of order. A mobile app that queues events offline and sends them later can deliver
Sign Up Completedwith a timestamp earlier thanSign Up Startedif device clocks disagree. A strict funnel then drops the user. Check the event time source when a step has an odd drop. - Step 1 firing too late. If the "start" event fires only after a form is submitted, it can occur after the "complete" event. Strict order then undercounts.
- Mixing counting units when comparing reports. A funnel by unique users and a chart of total events will not match. Compare like with like.
- Treating "any order" as a fix. It hides a tracking problem. Investigate the cause first.
- Comparing two funnels with different order settings. A setting buried in the configuration can explain a gap between two analysts' results.
A checklist before you trust a funnel number
- Is the order mode right for the real flow?
- Is the counting unit (users, total conversions, sessions, or groups) the one your question needs?
- Which step 1 event anchors the window for repeat users?
- Do event timestamps reflect when the action actually happened?
- Are the settings the same in any report you compare against?
Exercise
A user fires Sign Up Started on Monday, then Sign Up Completed on Tuesday, then Email Verified on Wednesday. Your three-step funnel is Started, Email Verified, Completed with a 7-day window and unique-user counting. Does this user convert under "this order"? Under "any order"? Why might switching to "any order" be misleading here?
Show answer
Under "this order" the user does not convert. They reach step 1 and step 2 is satisfied only if Email Verified comes after Started, which it does (Wednesday), but step 3 (Completed) happened on Tuesday, before step 2, so the user is dropped at step 3. Under "any order" the user converts, because all three events occurred within 7 days of the first. Switching can mislead because it would count a user who completed sign-up before verifying their email. That may point to a tracking issue or a path that skips verification, and "any order" would hide it instead of revealing it.
Exercise
A purchase funnel shows 1,000 unique users at step 1 and 300 unique converting users, but 450 total conversions. What does the difference tell you, and which number would you use to answer "what share of visitors buy?"
Show answer
The 150 extra conversions come from users who completed the funnel more than once, so some buyers purchased repeatedly. To answer "what share of visitors buy?" use unique users: 300 of 1,000, or 30%. The total of 450 answers a volume question, such as how many purchases happened.