Sub topic 6
Landing Page and Fake-Door Smoke Tests
This chapter assumes you know what an MVP and a customer segment are. It also assumes you can read a percentage and a short Python snippet. A smoke test checks one thing cheaply: will the right people take a costly-enough action for an offer that does not exist yet?
What a smoke test is
A smoke test is a landing page or button that presents a product as available and measures how many visitors act on it. A fake-door test is the same idea inside an existing product or site. You show a button or menu item for a feature that is not built. A click counts as a signal, and the visitor then sees a "coming soon" message.
Both tests produce behavioral evidence. Visitors do something, instead of telling you what they might do. The strength of that evidence depends on how much the action costs the visitor.
Designing the test
Write the plan before you launch, so the result cannot be reinterpreted afterwards. Fix the segment, the metric, the sample size and the thresholds.
hypothesis: "Freelance designers will pay $19/month for automated invoice reminders"
segment: "Freelance designers who invoice at least 5 clients per month"
test: "Fake-door pricing page with a 'Start paid trial' button"
metric: "Share of qualified visitors who click 'Start paid trial' and enter card details"
minimum_sample: 300 qualified visitors
build_if: "Lower bound of the 95% confidence interval is at least 2%"
stop_if: "Upper bound of the 95% confidence interval is below 1%"
otherwise: "Change the offer or the audience and rerun the test"A good page has one headline stating the outcome for a named segment, a short list of benefits, a visible price, and one call to action. Choose the call to action by the evidence you need. An email field is weak evidence. A button that leads to a card form is much stronger. Once someone enters card details, tell them honestly that the product is not ready and do not charge them.
Check the traffic budget first
Before spending money, work out how many visitors you need.
import math
def visitors_needed(target_buyers, conversion_rate):
"""Visitors required to expect a given number of buyers at a conversion rate."""
if target_buyers <= 0:
raise ValueError("target_buyers must be positive")
if not 0 < conversion_rate <= 1:
raise ValueError("conversion_rate must be in (0, 1]")
return math.ceil(target_buyers / conversion_rate)
# To expect 20 paying preorders at a 2% visit-to-preorder rate:
print(visitors_needed(20, 0.02))This prints 1000. If your ad budget buys 300 visitors, you cannot expect 20 buyers at 2%. Either lower the target or raise the budget.
Read the result with an interval
Suppose 18 of 400 qualified visitors converted. The observed rate is 4.5%, but small samples are noisy. The Wilson interval gives a plausible range for the true rate.
import math
def wilson_interval(successes, trials, z=1.96):
"""95% Wilson score interval for a conversion rate."""
if trials <= 0:
raise ValueError("trials must be positive")
if not 0 <= successes <= trials:
raise ValueError("successes must be between 0 and trials")
p = successes / trials
denom = 1 + z**2 / trials
centre = (p + z**2 / (2 * trials)) / denom
margin = z * math.sqrt(p * (1 - p) / trials + z**2 / (4 * trials**2)) / denom
return centre - margin, centre + margin
low, high = wilson_interval(successes=18, trials=400)
print(f"Observed rate: {18 / 400:.1%}")
print(f"95% interval: {low:.1%} to {high:.1%}")The interval is roughly 2.9% to 7.0%. The lower bound is above the 2% build threshold, so this test passes by the plan above.
Common errors
- Counting unqualified visitors. Clicks from people outside your segment inflate the rate.
- Changing thresholds after seeing data. This defeats the purpose of the plan.
- Deceiving visitors. Say that the product is not yet available when they reach the end of the flow.
- Treating one passing test as proof of the business. It supports demand at one price for one audience.
Exercise
A fake-door test shows 6 clicks from 200 qualified visitors. Your plan says to build if the lower bound of the 95% interval is at least 2% and to stop if the upper bound is below 1%. What do you decide, and why?
Show answer
The observed rate is 3%, but the interval is wide, roughly 1.4% to 6.4%. The lower bound is below 2%, so the build condition fails. The upper bound is above 1%, so the stop condition fails too. By the plan, you change the offer or audience and rerun, ideally with more visitors.