Customers & growth · Conversion rate optimization

A/B testing framework

Best for Startup to Growth

CONTROLVARIANT

Use it when

You have a specific change to a page, email or product flow and need to know whether it moves your main metric before you ship it to everyone.

Skip it when

  • Too few users reach the page to hit the planned sample within about four weeks. Use Pre/post analysis instead and treat the read as weaker evidence.
  • You want to change several elements at once and learn how they interact. Use Multivariate testing, which needs far more traffic.
  • You need to know what a whole channel or campaign adds beyond what would happen anyway. Use Holdout testing.
  • You have an idea but no written prediction or success metric. Use Test hypothesis development first.

What to apply first and what to use instead are listed below.

Approaches

Fixed-horizon test

Set the sample size from the smallest lift worth detecting, run to that size in whole weeks, and read the result once at the end.

  • Pro The method is standard, and every testing tool and analyst can run it.
  • Con Checking results early and stopping on a good day produces false winners.

Always-valid sequential test

Use a sequential method whose p-values stay valid at every look, so the team can stop as soon as the evidence is strong enough.

  • Pro Clear winners and clear losers can stop early, which saves traffic and limits harm from a bad variant.
  • Con It needs a testing tool or analyst that implements the method, and the stopping rule must still be fixed before launch.

Inputs

  • Hypothesis
    One written statement naming the change, the audience, the primary metric and the expected direction, from Test hypothesis development.
  • Primary metric and guardrails
    One overall evaluation metric agreed before launch, plus guardrail metrics such as page load time or unsubscribe rate that must not get worse.
  • Baseline and traffic
    Current value and variance of the primary metric and weekly eligible users, from analytics over the last four weeks or an A/A test.
  • Smallest lift worth detecting
    The minimum change in the primary metric that would justify shipping, in percentage points or percent, set by the business owner.
  • Testing tool
    A platform or in-house system that assigns users at random by a stable ID and logs who saw which version.

Steps

  1. Write the test plan before launch, fixing the primary metric, guardrails, randomization unit and smallest lift worth detecting.
  2. Calculate the sample size from the baseline variance, that lift and the chosen power, then set the run length in whole weeks, one week at least.
  3. Launch to a small share of users to catch bugs, then ramp to an even split between control and variant.
  4. Check the sample ratio once data arrives, and pause to find the cause if the split differs significantly from the plan.
  5. Run to the planned sample size or the sequential stopping rule, then compare the primary metric and guardrails between groups with confidence intervals.
  6. Decide to ship, iterate or drop, and log the result, the segments checked and the decision in the team's test log.

Output

A one-page test readout with the decision, filed in the team's test log.

  • Hypothesis
  • Primary metric and guardrails
  • Sample size planned and reached
  • Sample ratio check result
  • Lift on the primary metric with confidence interval
  • Guardrail results
  • Decision (ship, iterate or drop)
  • Learning and next test

Done when

  • The primary metric, guardrails and sample size are dated before launch.
  • The test ran in whole weeks and reached its planned sample, or stopped on a rule written before launch.
  • The sample ratio check passed before anyone read the result.
  • The readout gives the lift with a confidence interval and a result for every guardrail.
  • The decision and the learning are recorded in the test log.

Measure

After shipping a winner, track the primary metric for four to eight weeks against the same weeks before launch and the same period last year. It worked when the gain holds inside the test's confidence interval. Each quarter, review your own win rate, the share of tests that passed the sample ratio check and the share that reached their planned sample.

Benchmarks

  • About 12% of experiments winShare of true experiments that moved the primary metric in the winning direction at 90% significance or higher, across about 1,100 companies running 127,000 experiments on Optimizely from 2018 to 2023Evolution of experimentationOptimizely, 2023
  • 77% of experiments test only two variationsShare of true experiments with one control and one treatment in the same Optimizely sample of 127,000 experiments, 2018 to 2023, where tests with four or more variations had more than twice the impact of A/B testsEvolution of experimentationOptimizely, 2023

Hypothetical example

Northlake, an online plant shop, tests a shorter checkout form. Checkout conversion is 3.0%, and the owner will ship only for a lift of 0.3 points or more. The plan needs about 52,000 users per group, so with 52,000 eligible users a week the test runs two full weeks. The variant runs at 5% of traffic for a day with no errors, then moves to an even split. The final split is 50.1% to 49.9%, and the sample ratio check passes. Conversion is 3.4% in the variant, with a confidence interval of 0.1 to 0.7 points. Page load time and refund requests show no change. The team ships the form and logs a follow-up test on the payment step.

Common mistakes

  • Stopping the first day the result looks significant. Fix the sample size or a sequential stopping rule before launch and keep to it.
  • Reading results without checking the split. Run the sample ratio check first, and treat a failed check as a broken test.
  • Running only a few days because traffic is high. Run in whole weeks so weekday and weekend users are both counted.
  • Calling a flat result a loss. Check whether the test had enough power to detect the lift you cared about before you drop the idea.
  • Trusting an early lift that fades. Curiosity can lift a new design at first, so compare new and returning users or run longer.

Sources

Show all 6 sources

By company stage

  1. Pre-IdeaNot applicableThere is no live product or traffic to split.
  2. IdeaNot applicableTraffic is too small to reach a trustworthy sample in a few weeks.
  3. Early StartupUsefulSome tests are possible on key flows, but many pages lack enough traffic.
  4. StartupCriticalEnough traffic exists to test changes rigorously before shipping them to everyone.
  5. GrowthCriticalMany teams ship changes, so a disciplined testing method guards against false wins.
  6. ScaleUsefulExperimentation is established, so the framework supports rather than drives progress.
  7. EnterpriseUsefulLarge firms run experimentation platforms, so this is routine practice.

Apply first

  • Statistical significance frameworkCustomers & growth · Performance marketing

    Reading an A/B result correctly depends on understanding significance, confidence and sample size; without it teams ship false winners.

Use instead

  • Pre/post analysis

    use this when enough users reach the page to hit the planned sample within about four weeks; use the other when traffic is too low and you accept a weaker before and after read.

  • Multivariate testing

    You want to change several elements at once and learn how they interact. Use Multivariate testing, which needs far more traffic.

  • Holdout testing

    You need to know what a whole channel or campaign adds beyond what would happen anyway. Use Holdout testing.

  • Test hypothesis development

    You have an idea but no written prediction or success metric. Use Test hypothesis development first.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account