What is an A/B test?
An A/B test helps you find out whether a specific change affects what your users do. The control version gives you a baseline for comparison, so you don't have to judge the new version on its result alone. Nielsen Norman Group describes the method as quantitative: you use numbers from a live audience to assess a change against a specific business goal.
You may also come across the terms A/B testing, split test and split testing. Whatever you call it, the test first and foremost tells you how the versions perform on the metric you've chosen. On its own, it doesn't tell you why users respond differently.
How do you use an A/B test?
You start by choosing the action you want to influence. Then you form a hypothesis about which change could get more people to take that action. For example, you might expect a more specific button text to get more people to submit a form.
You keep the current version as the control and create a variant. HubSpot typically recommends changing one thing at a time. It's easier to judge the effect of the button text if you keep the image, the layout and the form the same in both versions.
You then split visitors or recipients between the versions, preferably at random, so the groups are as similar as possible. You measure both versions over the same period and finally assess whether the difference gives you a reliable basis for choosing a version.
Why should you use an A/B test?
An A/B test lets you hold your expectation up against what users actually do. It can help you make decisions about a landing page, an ad or an email without relying only on an assumption about what works.
Your metric decides what you can use the result for. An ad variant can get more clicks without bringing in more purchases or leads. So you can use clicks to judge how often people respond to the ad. If you want to know which variant best supports that goal, you need to measure the desired conversion.
Which types of test can you choose from?
You can choose an A/B test if you want to compare one variant against the control. You can choose an A/B/n test if you want to compare several variants with the same control. More variants don't necessarily mean you're testing more elements. For example, you can compare several texts for the same button.
You can test a landing page by splitting visitors on the same URL between different versions of the page. In an email test, you can send different versions to part of your recipients and then send the best-performing version to the rest, if your setup allows it.
You should distinguish between an A/B test and a multivariate test. You typically use an A/B test to compare versions with one isolated change, and you use a multivariate test to examine several elements or combinations of them.
How do you use an A/B test in practice?
You choose one primary metric before the test starts. You use the conversion rate if you want to know the share of people who take the desired action. You use the click-through rate if you want to know the share who click a link or a button. In an email test, you can choose the open rate if you want to find out how often recipients open the email.
Here's how you can test a new button text on a landing page:
You keep the existing button text in the control version and change only the text in the variant. You split visitors between the versions and compare the share in each group who submit the form. You don't count clicks on the button as success, because the test needs to show whether more people complete the form.
What should you look out for?
A difference in the numbers doesn't on its own show that the change caused the result. HubSpot recommends that you take statistical significance into account and decide in advance how strong a result you'll require before you pick a winner. You don't have to name a winner if the test doesn't give you a reliable answer.
You can't use one fixed test duration or one minimum number of participants for every test. What you need depends on things like your traffic volume and the size of the effect you're measuring. You should also keep your conclusion to the specific setup and metric, so you don't use a result about clicks to draw a conclusion about purchases.