A/B Testing Explained

How A/B testing works, how long a test should run, how it compares with multivariate and split URL tests and how to keep it from hurting SEO.

By The Design Wire editorial team · Last updated: November 30, 2026

What is A/B testing?

Short answer: A/B testing, also called split testing or bucket testing, is a randomized experiment that compares two versions of a page, email or ad. Visitors are assigned to one version at random, and the version that does better on a metric chosen in advance, such as clicks or sign-ups, wins once the difference is statistically significant.

How an A/B test works

Every test starts with a hypothesis about one change, for example that a shorter form will lift sign-ups. Version A is the current page and version B carries the change. The primary metric is fixed before the test begins, so the result can't be picked afterward to suit whichever version looks better.

A testing tool then splits traffic at random. Random assignment is what makes the comparison fair, since both groups see the page under the same conditions at the same time. A statistical test then shows, once enough people have taken part, whether the gap between the two versions is likely to be real or down to chance.

A/B, multivariate and split URL tests

What changes

When it fits

A/B test

One element, shown in two (or more) versions

Testing a single idea, such as the wording of a button

Multivariate test

Several elements at once, measured alone and in combination

Finding out how changes to different parts of a page interact

Split URL test

Whole pages, each at its own URL, with visitors redirected to one of them

Comparing a redesigned page with the current one

How long should a test run?

Google's guidance is that the time needed depends on factors like conversion rate and traffic, and that a good testing tool will say when it has enough data for a reliable conclusion. A/B tests need large samples to produce a significant result, so a site with modest traffic has to run its tests for longer.

Running for whole weeks lets weekday and weekend behavior both show up in the data. Stopping early because one version looks ahead is a common way to get a false positive, since short-lived spikes can make a loser look like a winner.

Can A/B testing hurt SEO?

Small changes, such as a button's color or the text of a call to action, often have little or no effect on how a page appears or ranks in Google. Google's guidance for testing covers the rest.

  • Googlebot should see the same versions people see. Showing it a different set of pages is cloaking, which breaks Google's spam policies whether or not a test is running.

  • Variant URLs should carry a rel="canonical" link to the original page. Google recommends this over a noindex tag.

  • Redirects from the original URL to a variant should be 302 (temporary) redirects, not 301 (permanent) ones.

  • The winning version goes live when the test ends, and the variant URLs, scripts and markup come out. Google may treat a test left running for too long as an attempt to deceive search engines.

What an A/B test can't tell you

A test shows which version people preferred. It doesn't show why, so the reason has to come from other research. Results can also hide differences between groups: one version can win overall while the other does better with a particular segment of customers. A test planned to compare segments needs those groups spread evenly across both versions from the start.

Frequently asked questions

Does A/B testing really work?

It works for the question it's built to answer: which version performed better on one metric, for the people who took part, during the test. It's less reliable with small samples, and it's only valid as a true experiment. Data collected without random assignment, such as a before-and-after comparison, can't be read the same way.

What are some A/B testing examples?

Common tests compare two email subject lines, two versions of a call to action such as "Add to cart" and "Buy now", different fonts on a button, or two layouts of a landing page. Headlines, images, ad copy and pricing are also common subjects.

Is Google Optimize still available?

No. Google Optimize and Optimize 360 stopped working on September 30, 2023, and any experiments still running on that date ended.

The bottom line

An A/B test compares two versions with randomly split traffic and a metric fixed in advance. It needs enough visitors and enough time to rule out chance, and following Google's testing guidance keeps its effect on search performance to a minimum.

More rankings from The Design Wire: CRO, Education digital marketing.

Related guides: UTM Parameters Explained.