Sub topic 12
Running experiments on the funnel
This chapter assumes you can read a signup-to-paid funnel, compute activation rate and conversion, and calculate percentages. You should also know your activation event from earlier chapters. Here you learn how to plan a funnel experiment so the result tells you something true.
Why experiment at all
Funnel changes often feel obviously good. A shorter signup form, a new checklist, or a longer trial can each look like a win. But conversion moves for many reasons: seasonality, a campaign that brought different visitors, a pricing page update. If you compare this week to last week, you cannot separate your change from those other causes.
An experiment fixes this. You split new users at random into two groups and show each group a different version at the same time. Any difference in outcome is then much more likely to come from the change itself.
The parts of a funnel experiment
A plan has five parts. Write them down before you launch.
- Hypothesis. A statement of the form "If we change X for audience Y, metric Z will move because of reason R."
- Primary metric. The one number that decides success.
- Guardrail metric. A number that must not get worse.
- Unit and split. Who is randomized, and how.
- Duration and sample size. How long to run, and how many users you need.
Choose the primary metric near the change
Pick a metric close to the thing you changed. If you redesign onboarding, the primary metric is the activation rate, not revenue. Revenue is affected by many later steps, so it is noisy and slow.
Add a guardrail metric
A change can improve one number by damaging another. Removing a signup field may raise signups while lowering the share who activate. Making a paywall appear sooner may raise paid conversion while hurting retention.
| Change | Primary metric | Guardrail metric |
|---|---|---|
| Shorter signup form | Signup completion rate | Activation rate of new signups |
| New onboarding checklist | Activation rate | Time to activation |
| Earlier upgrade prompt | Free-to-paid conversion | 30-day retention of free users |
| Longer trial (14 to 30 days) | Trial-to-paid conversion | Revenue per signup |
Randomize by the right unit
Randomize by user, or by account if people in one account share a workspace. If two teammates in the same account see different versions, they will confuse each other and contaminate the result. Keep each user in the same group for the whole test.
A worked check on the numbers
Suppose control activates 640 of 2,000 signups (32.0%) and the variant activates 700 of 2,000 (35.0%). The gap is 3 points, but you need to know whether it could be chance. The code below runs a two-proportion z-test using only the standard library.
from math import sqrt, erf
def two_proportion_z(x1: int, n1: int, x2: int, n2: int):
"""Return (difference, z, two-sided p-value) for two conversion rates."""
p1, p2 = x1 / n1, x2 / n2
pooled = (x1 + x2) / (n1 + n2)
se = sqrt(pooled * (1 - pooled) * (1 / n1 + 1 / n2))
z = (p2 - p1) / se
p_value = 2 * (1 - 0.5 * (1 + erf(abs(z) / sqrt(2))))
return p2 - p1, z, p_value
diff, z, p = two_proportion_z(640, 2000, 700, 2000)
print(f"difference: {diff:.1%}")
print(f"z: {z:.2f}")
print(f"p-value: {p:.3f}")The p-value is about 0.03. That means a gap this large would appear in roughly 3% of tests if the two versions were truly identical. Many teams use 0.05 as the threshold, so this result counts as a likely real improvement.
Common errors
- Peeking. Checking the p-value daily and stopping when it dips below 0.05 inflates false wins. Fix the sample size first and wait.
- Too little traffic. Small funnels cannot detect small lifts. Test bigger changes, or run longer.
- Ending mid-cycle. If your trial lasts 14 days, wait at least that long to measure trial-to-paid conversion.
- Many metrics, one winner. If you check ten metrics, one will look significant by luck. Name the primary metric in advance.
Exercise
You shorten the signup form and signups rise 12%, but the activation rate of new signups falls from 32% to 27%. Which metric was the guardrail, and should you ship the change?
Show answer
Activation rate of new signups was the guardrail. Signups are up, but a smaller share of them reach the aha moment, so the extra signups are likely low intent. Do not ship yet. Check the number of activated users per visitor. If that fell or stayed flat, stop or iterate.