
Testing a new button label or layout is a normal way to improve enquiries. Google publishes guidance so that a test does not damage how the site appears in search.
Types of test
A/B testing compares two or more variations of a change. Multivariate testing changes more than one thing at a time. A test can use separate URLs for each version, with users redirected to them, or insert variations dynamically with JavaScript.
Do not cloak
Do not show one set of URLs to Googlebot and a different set to people. That is cloaking, it is against Google’s spam policies whether or not you are running a test, and it can get a site demoted or removed. If cookies control the test, remember Googlebot generally does not support cookies and sees only the version that cookie-less browsers see.
Canonical links
If the test uses several URLs, add a rel=canonical link on the alternate URLs pointing to the original. Google recommends this over a noindex tag because it matches the intent more closely.
Use 302, not 301
When redirecting users from the original URL to a variation, use a 302 temporary redirect rather than a 301 permanent one. It tells search engines the redirect is temporary and the original should stay in results.
Small changes
Google notes it may not matter much if variations are crawled when you test small things like button colour or call-to-action text. End the test when you have an answer and remove the variations.
Source: https://developers.google.com/search/docs/crawling-indexing/website-testing. This article combines the linked guidance with editorial workflow advice; it is not a certification or a promise of business results.
Explore the Pixeleator portfolio or discuss your website project.