You change the color of a button on your home page, sales go up the next day, and you say "it worked." Then you remember there was a campaign that week. Decisions like these are often built on gut feeling and coincidence. A/B testing changes that: it shows two versions at the same time and uses data to show which one works better.
In this article we explain, in plain language, what A/B testing is, how it's run on a website, what to watch out for, and the official rules Google gives on this topic from an SEO point of view.
What Is A/B Testing?
A/B testing means showing two versions (A and B) of a page or element to different groups of visitors at the same time and measuring which gets the better result. A is usually the current version, and B is the changed one. Visitors are split randomly, and the results are compared on a metric chosen in advance: sign-ups, orders, form submissions, clicks.
The key idea is that both versions are tested under the same conditions at the same time. That way outside factors like a campaign, the season or the day of the week don't distort the result.
What Can Be Tested?
- Headline and copy: different wording of the same offer.
- The button: text, color, position and size.
- The form: number of fields, their order, the wording.
- Image and video: a different picture or visual.
- Price display: how it's presented, how a discount is written.
- Page structure: the order of sections, navigation.
- Email: subject line, send time.
A big change is easier to detect. Measuring the effect of small changes takes more traffic.
How Is an A/B Test Run?
- Define the problem. Start with a concrete observation such as "people add to cart, but don't complete payment." For that, tracking has to be in place first. See: how to set up conversion tracking.
- Write a hypothesis. "If we change the payment button text from 'Continue' to 'Complete order,' completion will rise, because the next step will be clearer."
- Choose a primary metric. Decide which number you'll look at before the test starts. Picking whichever metric looks best afterwards ruins the result.
- Test only one change. If you change the headline, the button and the image at once, you won't know which one made the difference.
- Split the traffic. Visitors should land randomly in groups A and B. The same visitor should see the same variant when they come back.
- Wait long enough. Don't stop the test after looking at the gap in the first few days.
- Evaluate the result. Make sure the difference isn't chance, then roll out the winning variant.
- Record the outcome. What you tested, what you found, why you decided. Later tests will build on it.
How Long Should a Test Run?
Martin Fowler's article notes that experiment toggles must stay unchanged long enough to produce statistically meaningful results. The exact duration depends on traffic and the size of the effect. A practical approach: run the test for a period planned in advance, and don't stop at the first positive-looking result. On sites with very little traffic, some tests may take a long time to give a reliable result. In that case, bigger changes, or user interviews alongside the numbers, make more sense.
Google's SEO Rules
According to Google Search Central's official document on A/B testing and SEO, a test shouldn't harm your site's search performance. The main rules are:
- Don't cloak. Showing Googlebot different content than visitors see violates Google's spam policies. The document notes that Googlebot generally doesn't support cookies, so a cookie-based test shows it only the version served to browsers that reject cookies.
- Use rel="canonical", not noindex. If you create separate URLs for the test, point them to the original URL as the canonical. Google says noindex in this situation can have unexpected bad effects.
- Use 302 redirects, not 301. A 302 signals a temporary redirect, and search engines keep the original URL indexed. JavaScript-based redirects are also acceptable.
- Run the test only as long as necessary. When the test ends, apply the winning variant and promptly remove the test URLs, scripts and markup. Google notes that an unnecessarily long experiment, especially one serving a variant to a large share of users, could be treated as an attempt to deceive search engines.
To check your site's technical SEO setup, see our technical SEO audit article.
Cookies and Consent
A/B testing tools often use cookies to recognize visitors. If you have a European audience, check which category the tool falls under and how your consent mechanism handles it. Confirm any legal questions on this with a lawyer. For the technical side, see our article on cookie consent and personal data protection.
The Most Common Mistakes
- Stopping the test too early. The gap in the first days can be random.
- Changing too many things at once. You won't know which one had the effect.
- Choosing the metric after the test. Looking at whichever number came out well is fooling yourself.
- Testing without a hypothesis. A "let's see what happens" approach doesn't teach anything.
- Starting a test without tracking set up. You won't be able to measure the result.
- Forgetting to roll out the winner. Few teams build a test and never apply its result, but some do.
- Ignoring Google's rules. Cloaking, noindex or an overly long test can hurt SEO.
- Trying to test everything. Start with the pages that get the most traffic or lose the most.
A/B Testing in E-commerce
In an online store, the most tested places are the product page, the cart and the checkout step, because every small improvement there affects sales directly. For example, at which step shipping costs are shown, the order of payment methods, or the number of form fields. Other steps for growing sales are in our article on increasing sales with an e-commerce website.
Testing a Landing Page
A landing page built for a campaign is an ideal place for A/B testing, because the goal is single and clear. For the differences between a landing page and a website, see our article on landing page vs website.
How to Set Up an A/B Test Technically
There are two routes. The first is to use a ready-made A/B testing tool, where you create the variant in a visual editor. The second is to build the test at the software level: the code picks the variant and records which user saw which. In Fowler's description, an experiment toggle must route each user to the same cohort consistently. In custom-built systems this logic is usually handled while planning custom software.
Frequently Asked Questions
How much traffic do I need for an A/B test?
The exact number depends on the size of the effect and your current conversion rate. With very little traffic the result may not be reliable. In that case, big changes or qualitative research can be more useful.
Does A/B testing hurt SEO?
Not if you follow Google's rules. Don't cloak, use canonical instead of noindex and 302 instead of 301, and don't keep the test running longer than needed.
Can I run several tests at once?
Yes, but the tests shouldn't affect each other. Tests that influence the same element or the same metric need to be kept apart.
When can I stop a test?
When the period or sample size planned in advance is complete. According to Fowler's article, an experiment must stay unchanged long enough for statistically meaningful results.
What's the difference between A/B and multivariate testing?
An A/B test compares two versions of one change. A multivariate test tries combinations of several elements at once and needs more traffic.
Which tool should I use?
It depends on your platform, budget and team skills. Tracking and a hypothesis should be ready before the tool.
Conclusion
A/B testing lets you make decisions with data, not gut feeling. The basic conditions for it to work are simple: a concrete problem, a written hypothesis, a metric chosen in advance, one change and enough waiting. And when you follow Google's rules, testing doesn't hurt SEO.
If you have questions about which page to test or how to set up tracking, get in touch with the Crocusoft team. Let's work out together which tests will bring the most value.
Sources: Google Search Central (Website testing and Google Search), Martin Fowler (Feature Toggles).
+994512060920