Sub topic 4
Funnels and Conversion Steps
Assume you know basic SQL, can read event data, and understand percentages and ratios. A funnel measures how many users move through a sequence of actions. Each action is a conversion step. Funnels help you locate where users stop progressing toward a useful outcome.
A funnel for a project-management product might look like this:
Define each step as a specific event. Also define the starting population and the time window. For example, “users who signed up in January and viewed a report within 14 days” is measurable. “Users who became interested” is not.
| Step | Event definition | Question answered |
|---|---|---|
| Signup | A user record is created | Who enters the funnel? |
| Invite sent | invite_sent event | Did the user begin setup? |
| Project created | project_created event | Did the user configure the product? |
| First report viewed | report_viewed event after project creation | Did the user reach an early outcome? |
Calculating conversion
There are two useful conversion rates:
- Step conversion is users completing a step divided by users who completed the previous step.
- Overall conversion is users completing a step divided by everyone in the starting population.
Suppose 1,000 users sign up, 600 send an invite, 300 create a project, and 180 view a report.
- Invite step conversion: 600 ÷ 1,000 = 60%.
- Project step conversion: 300 ÷ 600 = 50%.
- Report step conversion: 180 ÷ 300 = 60%.
- Overall report conversion: 180 ÷ 1,000 = 18%.
Step conversion identifies the largest local drop. Overall conversion shows how much of the original population reaches the outcome.
Enforcing order and timing
A user should count for a later step only if the user completed the earlier steps in the required order. A user who created a project before sending an invite should not count as having followed this funnel.
This PostgreSQL query counts a 14-day ordered funnel for users who signed up in January 2026:
WITH eligible AS (
SELECT user_id, signup_at
FROM users
WHERE signup_at >= DATE '2026-01-01'
AND signup_at < DATE '2026-02-01'
),
invites AS (
SELECT e.user_id, MIN(x.event_time) AS invite_at
FROM eligible e
JOIN events x ON x.user_id = e.user_id
WHERE x.event_name = 'invite_sent'
AND x.event_time >= e.signup_at
AND x.event_time < e.signup_at + INTERVAL '14 days'
GROUP BY e.user_id
),
projects AS (
SELECT i.user_id, MIN(x.event_time) AS project_at
FROM invites i
JOIN events x ON x.user_id = i.user_id
WHERE x.event_name = 'project_created'
AND x.event_time > i.invite_at
GROUP BY i.user_id
),
reports AS (
SELECT p.user_id
FROM projects p
JOIN events x ON x.user_id = p.user_id
WHERE x.event_name = 'report_viewed'
AND x.event_time > p.project_at
GROUP BY p.user_id
)
SELECT 'signup' AS step, COUNT(*) AS users FROM eligible
UNION ALL
SELECT 'invite_sent', COUNT(*) FROM invites
UNION ALL
SELECT 'project_created', COUNT(*) FROM projects
UNION ALL
SELECT 'report_viewed', COUNT(*) FROM reports;The query uses the first qualifying event for each step. In production, also apply the 14-day limit to later steps by carrying signup_at into each CTE. Otherwise, a report viewed months later could be counted accidentally.
Common errors
- Changing the starting population between reports.
- Counting events instead of distinct users.
- Ignoring event order.
- Using different time windows for different users.
- Treating every funnel step as equally important.
- Comparing funnels with changed event definitions as though they were the same metric.
Use a funnel to find a problem, then investigate why users drop at that step. The funnel describes where progression changes; it does not explain the cause.
Exercise
A funnel has 800 signups, 400 invitesent users, and 160 projectcreated users. What are the invite step conversion, project step conversion, and overall project conversion?
Show answer
Invite step conversion is 400 ÷ 800 = 50%. Project step conversion is 160 ÷ 400 = 40%. Overall project conversion is 160 ÷ 800 = 20%.