What is A/B testing?
A/B testing compares two versions of one thing to find out which gets more people to act. Version A is the current one, called the control. Version B has one change. Visitors are split at random, both versions run at the same time, and the results are compared on a single metric chosen in advance, such as signups.
Random assignment is what makes it a test. Because both groups are drawn from the same traffic over the same days, the change is the only systematic difference between them.
How to run an A/B test
- Pick one metric that defines success, such as the conversion rate of a signup page.
- Write a hypothesis: "Showing pricing on the page will raise demo requests, because visitors currently leave to look for it."
- Change one thing, or one coherent set of things.
- Work out the sample size you need before you start.
- Split traffic at random and run both versions together for whole weeks, so weekday and weekend behaviour are both covered.
- Stop when the planned sample is reached, not when one version pulls ahead.
- Check that the result is statistically significant, then ship the winner or keep the control.
How much traffic does an A/B test need?
The smaller the difference you want to detect, and the lower the starting conversion rate, the more visitors you need. As a rule of thumb, pages that produce only a few conversions a week cannot be tested reliably on small changes such as button colour. With low traffic, test big changes, such as a different offer or a rewritten page, where the effect could be large enough to see.
A/B testing vs multivariate testing
| A/B test | Multivariate test | |
|---|---|---|
| Compares | Two versions, or a few | Many combinations of several elements |
| Tells you | Which version wins | Which element contributes what |
| Traffic needed | Lower | Much higher |
Split testing is another name for A/B testing. Some people use it specifically for tests that send traffic to two different URLs.
A/B testing examples
Common tests include a headline, the wording of a call to action, form length, a pricing page layout, an email subject line and an ad image. Use the conversion rate calculator to work out each version's rate.