---
title: "A/B testing"
description: "A/B testing shows two versions of a page to random visitors and measures which wins. How it works and how to test without hurting SEO."
url: https://ursy.com/wiki/ab-testing/
updated: 2026-11-26T15:46:03+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/ab-testing/
---

# A/B testing

> A/B testing shows two versions of a page to random visitors and measures which wins. How it works and how to test without hurting SEO.

**A/B testing is a way to compare two versions of a page, email or listing by showing each to a random share of real visitors and measuring which one gets more of the result you want.** Version A is the control, the page as it is now. Version B is the change. The numbers decide, not opinions. Done carelessly on a website, it can confuse [search engines](https://ursy.com/wiki/search-engine/), so the method matters as much as the idea.

## What is A/B testing? {#what-is-a-b-testing}

[Google](https://ursy.com/wiki/google/)’s guide to [website testing and Google Search](https://developers.google.com/search/docs/crawling-indexing/website-testing) describes A/B testing as testing two or more variations of a change. It calls testing more than one type of change at the same time multivariate testing. In both cases visitors are split at random, so the only steady difference between the groups is the version they saw.

The thing you measure is your goal: a sale, a sign-up, a click on a [call to action](https://ursy.com/wiki/call-to-action/), an added-to-basket event. That makes A/B testing the core method of [conversion rate optimisation](https://ursy.com/wiki/conversion-rate-optimisation/). It turns “I think a green button is better” into a number you can check.

## Why does it matter for search? {#why-does-it-matter-for-search}

A/B tests change what is on your pages, and search engines crawl those pages during the test. Google says a well-run test is fine. It also sets four rules in the same guide:

- **No [cloaking](https://ursy.com/wiki/cloaking/).**  Do not show one set of URLs to [Googlebot](https://ursy.com/wiki/googlebot/) and another to people. Google says this breaks its spam policies even during a test.
- **Use [rel=”canonical”](https://ursy.com/wiki/canonical-tag/)**  on every alternate [URL](https://ursy.com/wiki/url/), pointing at the original. Google prefers this to [noindex](https://ursy.com/wiki/noindex/), because it groups the near copies without removing the original from search.
- **Use a 302, not a 301,**  if you send visitors from the original URL to a test URL. A temporary [redirect](https://ursy.com/wiki/redirect/) keeps the original indexed. See [301 vs 302](https://ursy.com/wiki/301-vs-302-redirect/).
- **Run it only as long as needed.**  When the test ends, ship the winner and remove the test URLs, scripts and markup. A test left running for months, with most people seeing one version, can look like an attempt to deceive.

Tests can also be about search itself. You can test [title tags](https://ursy.com/wiki/title-tag/) or [meta descriptions](https://ursy.com/wiki/meta-description/) on groups of similar pages and compare [click-through rate](https://ursy.com/wiki/click-through-rate/) in Search Console. That is a page-group test over time, not a visitor split, and it needs more care because rankings move for other reasons too.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI assistants](https://ursy.com/wiki/ai-assistant/) and their crawlers read whatever version they are served. If your test swaps prices, claims or product facts, an assistant may copy the losing version into an answer and keep it for weeks. Test layout, wording and order freely. Keep the facts the same in every version, and keep [schema markup](https://ursy.com/wiki/schema-markup/) matching what each version shows. A [bot](https://ursy.com/wiki/bot-web-robot/) should never be the only visitor that always sees B. That is the same cloaking risk in a new form, and a reason to watch which [AI crawlers](https://ursy.com/wiki/ai-crawler/) [hit](https://ursy.com/wiki/hit-analytics/) your test URLs.

## How does it work, step by step? {#how-does-it-work-step-by-step}

1. **Pick one goal.**  One main number, such as completed orders per visitor.
2. **Write a hypothesis.**  “Putting delivery cost [above the fold](https://ursy.com/wiki/above-the-fold/) will raise checkout starts, because people leave when they find it late.”
3. **Change one thing**  for a simple A/B test. Change several only if you mean to run a multivariate test and have the traffic for it.
4. **Decide the sample size and length first.**  Low-traffic pages need weeks, not days. Run full weeks so weekdays and weekends both count.
5. **Split traffic at random**  and keep each visitor in the same group on return visits.
6. **Wait for a clear result.**  Look at the confidence level, not just which line is higher today.
7. **Ship and clean up.**  Make the winner the normal page and remove the test code.

## What tools run A/B tests? {#what-tools-run-a-b-tests}

Google Optimize was the free choice for many small sites. Google’s [Optimize sunset notice](https://support.google.com/analytics/answer/12979939) says Optimize and Optimize 360 stopped on 30 September 2023. Google said it was working on integrations with AB Tasty, Optimizely and VWO, and opened its APIs so other testing tools can link to [Google Analytics 4](https://ursy.com/wiki/google-analytics-4/).

App stores have their own built-in tests. Google Play’s [store listing experiments](https://support.google.com/googleplay/android-developer/answer/6227309) let you compare up to 2 variants with your current listing, judged on install or open clicks. Experiments stop by themselves after 6 months. Apple’s [product page optimisation](https://developer.apple.com/app-store/product-page-optimization/) lets you test up to 3 treatments of icons, screenshots and preview videos for up to 90 days. Apple suggests waiting until a treatment performs better or worse than the original with at least 90% confidence.

## A worked example {#a-worked-example}

A UK online shop sells handmade candles and sees many people leave the product page. The owner tests one change: a line under the price that says “Free UK delivery over £40” (B) against the current page with delivery details at the bottom (A).

Both versions live on the same URL. A script decides which one each visitor sees, and Googlebot gets the page the same way as anyone else. After 4 full weeks the report shows B with more basket adds per visitor and a confidence level the owner set as the bar before starting. The owner makes B the normal page, removes the script and checks that the [product structured data](https://ursy.com/wiki/product-structured-data/) still matches the visible price. Nothing about the URL or canonical changed, so search sees one stable page.

## Common mistakes {#common-mistakes}

- **Stopping early.**  Checking every day and stopping on the first good day picks up noise, not a real win.
- **Too little traffic.**  A page with 50 visits a week cannot show a small change. Test bigger ideas or busier pages.
- **Testing many things at once**  and calling it A/B. You will not know which change did the work.
- **Counting bots as visitors.**  Crawlers in the data dilute both groups. See [bot traffic in analytics](https://ursy.com/wiki/bot-traffic-in-analytics/).
- **Using a 301 or noindex**  on test URLs, against Google’s advice.
- **Different facts in each version,**  such as a lower price in B only.
- **Leaving old test code live,**  which slows the page and can hurt [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/).

## How to check it {#how-to-check-it}

- Fetch each version’s URL with our [meta tag checker](https://ursy.com/meta-tag-checker/) and confirm the canonical points to the original.
- Use the [redirect checker](https://ursy.com/redirect-checker/) to confirm any test redirect is a 302.
- Compare A and B side by side with the [text diff checker](https://ursy.com/webmaster-tools/text-diff-checker/) to make sure no facts changed.
- Tag test traffic with the [UTM builder](https://ursy.com/webmaster-tools/utm-builder/) when you send email or ad traffic to a version.
- Set goals carefully with [conversion tracking](https://ursy.com/wiki/conversion-tracking/). Our [events and goals](https://ursy.com/pro/events-and-goals/) report is Pro.

## Questions {#questions}

### Does A/B testing hurt SEO? {#does-a-b-testing-hurt-seo}

Not if you follow Google’s four rules: no cloaking, canonical on variants, 302 for redirects, and end the test on time.

### How long should a test run? {#how-long-should-a-test-run}

Until it reaches the sample size you set at the start, and at least full weeks. There is no single right number of days.

### What is a good result? {#what-is-a-good-result}

One where the confidence level clears the bar you chose before you began, on the goal you chose before you began.

## Related words {#related-words}

- [Conversion rate](https://ursy.com/wiki/conversion-rate/)
- [Conversion rate optimisation](https://ursy.com/wiki/conversion-rate-optimisation/)
- [Landing page](https://ursy.com/wiki/landing-page/)
- [Heatmaps](https://ursy.com/wiki/heatmaps/)
- [KPI](https://ursy.com/wiki/kpi-key-performance-indicator/)

## Sources {#sources}

- [Google Search Central: Minimise A/B testing impact in Google Search](https://developers.google.com/search/docs/crawling-indexing/website-testing), checked 24 November 2026
- [Google Analytics Help: Sunset of Google Optimize](https://support.google.com/analytics/answer/12979939), checked 24 November 2026
- [Google Play Console Help: Store listing experiments](https://support.google.com/googleplay/android-developer/answer/6227309), checked 24 November 2026
- [Apple Developer: Product page optimisation](https://developer.apple.com/app-store/product-page-optimization/), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
