Free, independent guides since 2010

Analytics & data

A/B testing for websites: a practical introduction

How to run A/B tests on a website: hypotheses, choosing what to test, sample size and duration, statistical significance, tools, common mistakes and alternatives for low-traffic sites.

<guide section="Analytics & data" type="article" read="1 min"/>

Opinions about design are cheap; data is convincing. A/B testing replaces “I think” with “we measured”. But it only works with enough traffic and a disciplined approach. It is the scientific end of conversion rate optimisation.

The process

  1. Observe: analytics, recordings or customer feedback show a problem.
  2. Hypothesis: “If we show the price on the landing page, more visitors will request a quote, because they know what to expect.”
  3. Design: one meaningful change in version B.
  4. Calculate: the needed sample size for the effect you want to detect.
  5. Run: split traffic randomly, run full weeks.
  6. Analyse: is the difference significant? Check segments like mobile and desktop.
  7. Implement and document: keep a test log, including failed tests.

What to test

ElementExample
Headline and value propositionBenefit-focused versus feature-focused
Call to actionButton text, placement (see CTA buttons)
FormsFewer fields, multi-step
Pricing presentationMonthly versus yearly first
Social proofReviews near the button

Common mistakes

  • Stopping a test early when it “looks” significant.
  • Testing tiny changes on low traffic.
  • Testing many things at once without the traffic for it.
  • Ignoring the effect on revenue or lead quality.
  • Flicker: version A shows briefly before B loads.

Low traffic?

Use user tests with five people, compare equal periods before and after a change, or test only bold changes where the effect is large. For SEO, make sure test variants do not confuse search engines: use temporary (302) redirects for split URLs and canonical tags.

Frequently asked questions

How long should an A/B test run?

At least one or two full weeks to cover weekday patterns, and until you reach the sample size you calculated beforehand. Stopping as soon as one version looks better leads to false conclusions.

What is a good first test?

Something with a big expected impact on an important page: the headline or main call to action on a landing page, or the number of form fields.