IT Glossary
What is A/B testing (split testing) and how does it work
A/B testing is the method of showing two versions of the same page, ad or email to different visitors at random and keeping the version that produces more conversions.
- 7
- sections
- 7
- questions answered
A/B testing (also called split testing or an A/B test) is an experiment in which the visitors to a site are randomly divided between two versions of the same page — A, the original, and B, the version with a single change — and the version that produces more conversions, such as orders or quote requests, stays on the site. Google accepts such tests if the crawler sees the same content as people, test URLs carry rel=“canonical” pointing to the original, redirects are 302 (temporary) rather than 301, and the test ends once it has its result (Google Search Central, “Minimize A/B testing impact in Google Search”).
For a company with reasonable traffic, it is the cheapest way to raise sales without more advertising spend: the same visitors, a higher share of them buying. You change one element at a time — the headline, the displayed price, the button wording, a photo — otherwise you cannot tell what moved the numbers. The limit is volume: at a 2 % conversion rate and a hoped-for 20 % lift, the standard calculation needs about 21,000 visitors and about 420 conversions per variant. A low-traffic site tests big changes or uses other methods, not fine wording.
Why it matters for your business
Decisions backed by evidence
Arguments about personal preference end with a number: the version that produces more orders wins, whatever anyone in the room thinks of it.
More revenue on the same budget
You improve the share of visitors who buy, so the traffic you already pay for delivers more without a single extra click purchased.
Change with a safety net
New ideas run against half your audience first; if a variant performs worse, you stop it having risked only part of your traffic.
How an A/B test works
A test starts with a hypothesis written down beforehand: “the new button will increase quote requests”. You pick a single main metric, for example the share of visitors who submit the form. The testing tool splits visitors at random, usually 50/50, and the duration and the number of visitors needed are fixed in advance.
In practice the test runs for whole weeks, because weekdays and weekends behave differently. Do not stop it on the first day version B “looks” like a winner: checking the result repeatedly raises the chance of a false win. If the tool picks the variant through a cookie, Googlebot usually sees the version without the cookie, because according to Google, Googlebot generally does not support cookies.
Types: A/B, A/B/n, split URL and multivariate
A/B means two variations of a change; Google words it as “two (or more) variations”. A/B/n has several variations of the same change, and split URL puts each variation at its own address, with some visitors redirected. A multivariate test changes several elements at once and measures the effect of each and of their combinations, which is why it needs far more traffic.
In apps and online shops, tests are often run with feature flags: the same feature is switched on for only part of the users.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
How much traffic you need: a calculation
The figures below are our own calculation with the standard two-proportion formula, at 95 % confidence and 80 % power, not a number quoted from elsewhere. At a 2 % baseline rate and a 20 % lift (from 2 % to 2.4 %) you need about 21,100 visitors per variant, roughly 420 conversions. At the same rate but a lift of only 10 %, it is about 80,700 visitors per variant (roughly 1,600 conversions). At a 5 % baseline and a 20 % lift (5 % to 6 %), you need about 8,200 visitors per variant (roughly 410 conversions).
The rule to remember: what counts is a few hundred conversions per variant, not the number of visits. With less traffic, test big changes — a different offer, a shorter form — or start with heatmaps, session recordings and tests with real users.
A/B testing and SEO: Google’s rules
Google allows tests, with four conditions. First: no cloaking, meaning you do not show the crawler a different version than people see, whether through server logic or robots.txt; a violation can lead to the site being demoted or removed from results. Second: on test URLs you set rel=“canonical” to the original address, not noindex. Third: you redirect with 302 (or through JavaScript), not 301, so the original URL stays in the index.
Fourth: the test runs only as long as needed, then you remove the test URLs, scripts and markup. An experiment kept running unnecessarily long can be treated as an attempt to deceive the search engine, especially when one variation is served to a large percentage of visitors. Google also notes that small changes, such as a button’s size or colour or the text of a call to action, usually have little or no effect on the snippet or on search ranking.
Tools after Google Optimize shut down
Google Optimize and Optimize 360 have not been available since 30 September 2023. For Google Analytics 4, Google collaborates on integrations with AB Tasty, Optimizely and VWO and has published its APIs for any other tool. Guides that still recommend Optimize are out of date.
Ad platforms also have built-in tests: Google Ads offers custom experiments for Search, Display, Video and Hotel campaigns, and Meta Ads Manager has an A/B test feature. Email platforms usually test subject lines. A testing tool on a website normally stores a cookie or a browser value so the visitor always sees the same variant, so check the cookie consent rules before launch.
Frequently asked questions
How much traffic do I need before an A/B test means anything?
A few hundred conversions per variant, not visits. At a 2 % rate and a 20 % lift, the standard calculation needs about 21,000 visitors and about 420 conversions per variant. A low-traffic site should test big changes, not fine wording.
What should a smaller company test first?
The elements that sit directly on the decision: the headline describing your offer, how price is presented, the wording of the main button and the length of the contact form. Cosmetic details in the footer are not where the money is.
Does A/B testing hurt my search rankings?
Not if you follow Google’s rules: no cloaking, rel=“canonical” to the original page, a 302 redirect instead of 301, and the test removed at the end. An experiment left running indefinitely can be treated as an attempt to deceive the search engine.
What is the difference between A/B testing and multivariate testing?
A/B changes one element and compares the two versions. A multivariate test changes several elements at once and measures both the effect of each and of their combinations, so it needs far more traffic than an A/B test.
How long should an A/B test run?
Until it reaches the sample size calculated beforehand, in whole weeks. Do not stop it on the first day a variant looks like the winner, because repeated checks raise the risk of a false win. Google also asks that it not run longer than necessary.
Can I still use Google Optimize for A/B tests?
No: Google Optimize and Optimize 360 have been closed since 30 September 2023. For Google Analytics 4, Google points to integrations with AB Tasty, Optimizely and VWO. Guides that still recommend Optimize are out of date.
What does 95 % statistical significance mean in an A/B test?
The usual convention: if the versions were actually equal, a difference at least this large would appear by chance in at most 5 % of cases. It does not mean a 95 % chance that B is better, and it does not say how big the gain is.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851