The secret of A/B testing
What A/B testing is, how to run a reliable test step by step, which mistakes ruin results, how it affects SEO and what to do when your site has little traffic.
A/B testing compares two versions of the same page, email, ad or feature by showing each one to a random share of your audience and measuring which performs better against a goal you set in advance. The secret is not the tool. It is a clear hypothesis, one meaningful change, enough traffic and the discipline to let the test finish before you decide.
This guide explains what A/B testing is, when it makes sense, how to run a test step by step, the mistakes that produce false winners and how to test without hurting your SEO.
What is A/B testing?
In an A/B test, version A (the control) is your current page and version B (the variant) differs in one respect: a headline, a button, a form, a price display. Visitors are assigned at random, so any difference in results can be attributed to the change rather than to who happened to see it.
The method comes from controlled experiments in statistics, formalized by Ronald Fisher in the early twentieth century, and it is the same logic used in clinical trials. Online it became popular because websites let you run experiments on real behavior quickly and cheaply.
A/B testing is the core of conversion rate optimization (CRO). You are not guessing what visitors prefer; you are letting their behavior decide.
When does A/B testing make sense?
Test when you have:
- A specific problem, such as a checkout page where many visitors leave or a landing page with low form completion.
- Enough traffic and conversions for a difference to show up within a reasonable time.
- A reliable way to measure the outcome you care about.
Common candidates are headlines, calls to action, form length, product page layout, pricing presentation, checkout steps, email subject lines and ad creatives.
Do not start A/B testing on trivial details if your site gets a few hundred visits a month. The test would take so long that conditions would change before it finished.
How to do A/B testing step by step
- Find the problem. Use analytics to locate pages where users drop off, then look at session recordings, heatmaps or customer feedback to understand why. A test without a diagnosis is a lottery.
- Write a hypothesis. Use the structure: “If we change X, then metric Y will improve, because Z.” The “because” forces you to state what you believe about your visitors.
- Choose one primary metric. It might be completed purchases, qualified leads or booked appointments. Add guardrail metrics such as revenue per visitor or refunds, so you do not win on clicks and lose on sales.
- Change one thing, or one clear concept. If you alter headline, image and button at once, you will not know what worked.
- Plan duration and sample size before you start. A sample size calculator tells you how many visitors you need based on your current conversion rate and the smallest improvement you care about. Run the test for full weeks so weekday and weekend behavior are both included.
- Randomize properly. Split traffic randomly, and make sure a returning visitor sees the same version every time.
- Check the tracking. Confirm that both versions record the conversion correctly before launch. Broken tracking is a frequent reason for confusing results.
- Let it finish, then analyze. Look at statistical significance and also at practical significance: a tiny but “significant” lift may not justify the change.
- Document and iterate. Record the hypothesis, result and what you learned, including tests that lost. Then roll out the winner and plan the next test.
A hypothetical A/B testing example
Imagine a dental clinic in Oviedo whose appointment page has a long form. The team suspects the form is putting people off, so the hypothesis is: “If we ask only for name, phone and preferred time, more visitors will request an appointment, because the form feels quicker.”
They create a short-form variant, split traffic evenly and run the test for four full weeks. The main metric is appointment requests. A guardrail metric is how many requested appointments are actually attended, since a shorter form could bring in less committed leads.
If the variant gets more requests and attendance holds, the clinic keeps it. If requests rise but attendance drops, the “winner” is not a winner. This is why the metric you pick matters.
Types of A/B testing
| Type | What it compares | Best for |
|---|---|---|
| A/B test | Two versions, one difference | Most websites and emails |
| A/B/n test | Three or more versions | Sites with solid traffic and several strong ideas |
| Multivariate test | Combinations of several elements at once | Very high-traffic pages, because the number of combinations grows quickly |
| Split URL test | Two different pages on separate URLs | Larger redesigns or new landing pages |
| Server-side test | Variants decided before the page is sent | Pricing, algorithms and logic beyond the visual layer |
A/B testing mistakes that produce false winners
- Stopping early. Checking daily and ending the test the first time it looks significant inflates the chance of a false result. Decide the duration up front.
- Testing too many ideas at once. Each extra variant needs more traffic.
- Ignoring seasonality. Running a test during a sale or holiday can make results unrepresentative.
- Chasing the wrong metric. More clicks on a button mean little if purchases do not change.
- Segmenting after the fact. If you slice results into many groups until one looks good, you are fishing for noise.
- Flicker. Some client-side tools briefly show the original before swapping the variant, which can distort behavior and hurt user experience.
- Not testing again. A result from a different season, audience or traffic source may not hold.
A/B testing and SEO
Testing is compatible with good SEO if you follow Google’s guidance on website testing:
- Do not cloak. Never show Googlebot different content from what users see.
- Use rel=“canonical” on variant URLs, pointing to the original, if you test with separate URLs.
- Use 302 redirects, not 301, if you redirect users to a variant, since the original URL should stay indexed.
- Run tests only as long as needed, then remove variant URLs and scripts promptly.
Small changes such as button text or color usually have little effect on how Google shows your page, according to Google’s documentation.
Tools for A/B testing
Google Optimize was shut down on 30 September 2023, so older guides that recommend it are out of date. Today you have several routes:
- Dedicated experimentation platforms for websites, from simple visual editors to server-side feature flags.
- Testing features inside platforms you already use, such as experiments in Google Ads, split tests in Meta’s ad tools and subject-line tests in most email marketing systems.
- CMS or store plugins, which can be convenient for small sites, but check their impact on page speed.
Whichever you choose, send the variant name to your analytics (for example as an event parameter in GA4) so you can cross-check results. Consistent campaign tagging with UTM codes helps you separate traffic sources inside a test.
A/B testing with little traffic
- Test bigger changes, such as a different offer or page structure, rather than small tweaks, because large effects need fewer visitors to detect.
- Test on your highest-traffic pages or closer to the conversion.
- Use qualitative research: a handful of moderated user sessions, customer interviews or a survey such as NPS can reveal obvious problems without statistical testing.
- Fix obvious issues directly: broken forms, slow loading and unclear messages do not need a test.
Where to apply what A/B testing teaches you
Results from one test often carry over: a clearer value proposition on one landing page may suit your ads, emails and other pages. For example, reducing sign-in friction with passkeys is a change worth validating with an experiment. Combine testing with email automation to improve subject lines and flows over time.
Frequently asked questions
How long should an A/B test run?
Long enough to reach the sample size you calculated before launch, and for at least one or two full weeks so that weekday and weekend behavior are included. Ending a test the moment it looks positive risks a false result.
How much traffic do I need for A/B testing?
It depends on your current conversion rate and the size of improvement you want to detect. Low conversion rates and small expected improvements require more traffic. A sample size calculator gives you a concrete answer for your case.
Does A/B testing hurt SEO?
Not if you follow Google’s guidance: no cloaking, canonical tags on variant URLs, 302 redirects for temporary tests and removing the test once it is over.
What is the difference between A/B testing and multivariate testing?
An A/B test changes one element and compares two versions. A multivariate test changes several elements at once and measures every combination, which needs much more traffic.
Can I do A/B testing without a developer?
Often yes, for simple changes with a visual editor or an email platform’s built-in tools. Tests involving checkout logic, pricing or tracking usually need technical support. Our web design team can help.
If you want to build an A/B testing plan for your website, take a look at our analytics and CRO service and ask for the free first diagnosis through our contact page.


