Google A/B testing guidance
The Google A/B testing guidance,
as documented
What Google documents, in its own words. Verified from Google's page on 2026-10-09.
Google's page explains how to test page variations with minimal impact on Search performance. This page lists those statements with the exact wording from Google.
What Google says
| Topic | What Google says | Source |
|---|---|---|
| Scope | “This page covers how to ensure that testing variations in page content or page URLs has minimal impact on your Google Search performance.” | Google docs Verified 2026-10-09 |
| Small changes | “Small changes, such as the size, color, or placement of a button or image, or the text of your "call to action" ("Add to cart" vs. "Buy now!"), can have a surprising impact on users' interactions with your page, but often have little or no impact on that page's search result snippet or ranking.” | Google docs Verified 2026-10-09 |
| Cloaking | “Don't show one set of URLs to Googlebot, and a different set to humans.” | Google docs Verified 2026-10-09 |
| Any method | “Cloaking counts whether you do it by server logic or by robots.txt, or any other method.” | Google docs Verified 2026-10-09 |
| Cookies | “If you're using cookies to control the test, keep in mind that Googlebot generally doesn't support cookies.” | Google docs Verified 2026-10-09 |
| rel=canonical | “If you're running a test with multiple URLs, you can use the rel="canonical" link attribute on all of your alternate URLs to indicate that the original URL is the preferred version.” | Google docs Verified 2026-10-09 |
| Not noindex | “We recommend using rel="canonical" rather than a noindex meta tag because it more closely matches your intent in this situation.” | Google docs Verified 2026-10-09 |
| 302 redirects | “If you're running a test that redirects users from the original URL to a variation URL, use a 302 (temporary) redirect, not a 301 (permanent) redirect.” | Google docs Verified 2026-10-09 |
| JavaScript redirects | “JavaScript-based redirects are also fine.” | Google docs Verified 2026-10-09 |
| Clean up | “Once you've concluded the test, update your site with the desired content variation(s) and remove all elements of the test as soon as possible, such as alternate URLs or testing scripts and markup.” | Google docs Verified 2026-10-09 |
| Too long | “If we discover a site running an experiment for an unnecessarily long time, we may interpret this as an attempt to deceive search engines and take action accordingly.” | Google docs Verified 2026-10-09 |
How to apply it
A checklist built only from the guidance in Google's page.
- Do not show Googlebot different URLs than users.
- Put rel="canonical" on alternate test URLs, pointing to the original URL.
- Use 302 redirects, not 301, to send users to variation URLs.
- End the test once the tool has enough data.
- Remove alternate URLs, testing scripts and markup as soon as possible.
Questions
Should test redirects be 301 or 302?
Google says to use a 302 (temporary) redirect, not a 301 (permanent) redirect.
Should I use noindex or rel=canonical on test URLs?
Google recommends rel="canonical" on the alternate URLs, pointing to the original URL, rather than a noindex meta tag.
Is showing Googlebot a different version allowed?
No. Google says showing one set of URLs to Googlebot and a different set to humans is cloaking, and is against its spam policies.
How long should a test run?
Google says to run it only as long as necessary, then remove all elements of the test as soon as possible.
Does Googlebot support cookies?
Google says Googlebot generally doesn't support cookies, so it will only see the version available to browsers that don't accept cookies.
How current is this page?
Every quote was read from Google's page on 2026-10-09. The page showed "Last updated 2025-12-10 UTC". Google can change its documentation, so treat the linked page as the final word.
Sources
- Minimize A/B testing impact in Google Search (Google Search Central), read on 2026-10-09
Let Balzac write the articles.
Type your website. Balzac finds the searches you can win, writes articles built to rank on Google and get cited by ChatGPT, and publishes them for you.
3 free articles · No card needed