A/B testing guides · 6 minute read
How to run your first A/B test
A step-by-step guide to your first A/B test: pick one page and one goal, write a hypothesis, build one change, let it run long enough, and read the result honestly.
An A/B test shows half your visitors the page as it is (A, the original) and half a changed version (B), then counts how many in each group do what you want. Because the two groups see the page at the same time, anything else that changes (a holiday, an ad campaign, the weather) affects both alike, so the difference left over is the change you made.
1. Pick one page and one goal
Choose a page that gets steady traffic and leads to something you can count: a sign-up, a purchase, a form sent, a visit to the thank-you page. One test, one main goal. You can watch other goals alongside, but decide up front which one picks the winner, or you will be tempted to pick whichever looks best afterwards.
2. Write down a hypothesis
A hypothesis says what you will change, what you expect to happen and why. "Changing the button from Submit to Get my free quote will get more people to send the form, because it says what they get" is testable. "Let's try a green button" isn't: if it wins, you won't know what to do next.
3. Make one clear change
Change one thing, and make it big enough to matter: a different headline, a shorter form, a new offer. Tiny changes (a slightly different shade) usually make tiny differences, which need enormous traffic to measure. If you want to test several parts at once, that's a multivariate test, which needs much more traffic.
4. Work out how long it needs
Before you start, use a sample-size calculator with your page's visitors a day and current conversion rate. It tells you how many visitors each version needs to spot the improvement you hope for. Plan for at least a full week so weekdays and weekends both count, even if you reach the number sooner.
5. Preview, then start
Open each version on your real site before visitors see it. Check it on a phone, check the change is really there, and check the goal fires when you complete it yourself. Then start the test and leave it alone.
6. Don't stop early
Early results swing wildly. A version that is 40% ahead on day two is often level by day ten. Decide your stopping rule before you start (a run time and a confidence level) and stick to it. Agility won't call a winner until a test has run at least 7 days with at least 100 visitors and 10 conversions in each version.
7. Read the result, and make it permanent
A clear winner: make the change on your site for good, then test the next idea. No clear winner: that's a result too. The change made little difference, so try something bolder. The original won: keep it, and you've avoided a change that would have cost you.
Checklist
- One page, one main goal, decided before you start
- A hypothesis with a reason
- One change, big enough to notice
- A planned run time of at least a week
- Every version previewed on a phone and a computer
- No peeking and stopping when it looks good