コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
A/B テスト時に Google 検索への影響を最小限に抑える
このページでは、ページ コンテンツまたはページ URL のパターンをテストする際に、Google 検索の掲載結果への影響を最小限に抑える方法について説明します。テストの作成または設計の方法については説明しませんが、このページの末尾にテストに関する他のリソースが掲載されています。
テストの概要
ウェブサイト テストでは、さまざまなバージョンのウェブサイト(またはウェブサイトの一部)を試し、各バージョンへのユーザーの反応に関するデータを収集します。
-
A/B テストでは、変更のパターンを 2 つ以上テストします。たとえば、さまざまなフォントのボタンをテストして、ボタンのクリックを増やすことができるかどうかを確認します。
-
多変量テストでは、複数の変更を一度にテストし、それぞれの変更による影響と変更間の潜在的な相乗効果を確認します。たとえば、複数のフォントでボタンを試し、同時にページの他のフォントも変更して(もしくは変更せずに)試してみます。新しいフォントは読みやすいでしょうか。読みやすいのであれば、すべての場所で使用すべきでしょうか。あるいは、ボタンのフォントをページの他の部分とは異なるものにして、関心を引きやすくするというメリットもあるかも知れません。
ソフトウェアを使用して、異なるパターンのページ(ページの一部、ページ全体、複数ページのフロー全体)で動作を比較し、ユーザーに最も効果があるバージョンをトラッキングできます。
テストを実施するには、複数バージョンのページを作成し、それぞれに独自の URL を指定します。
元の URL にアクセスしようとしたユーザーの一部を各パターンの URL にリダイレクトし、ユーザーの行動を比較して最も効果的なページを確認します。
ページに複数のパターンを動的に挿入して、URL を変更せずにテストを行うこともできます。JavaScript を使用すると、表示するパターンを指定できます。
テストするコンテンツのタイプによっては、テスト中にコンテンツのパターンの一部に対して Google によるクロールまたはインデックス登録が行われなくても、それほど問題は生じません。ボタンや画像のサイズ、色、配置、または「行動を促すフレーズ」(「カートに追加」や「今すぐ購入」など)に関する些細な変更は、ページに対するユーザーの操作に驚くほど大きな影響を及ぼすことがあります。しかし、多くの場合、ページの検索結果のスニペットやランキングには、ほとんどまたはまったく影響しません。
また、実行中のテストを検出してインデックスに登録できるほど、頻繁にサイトのクロールが行われている場合は、テストの完了後、最終的なサイトの更新内容がすぐにインデックスに登録される可能性も高くなります。
テストにおけるおすすめの方法
サイトのパターンをテストする際に Google 検索の動作に悪影響を及ぼさないためのおすすめの方法を、以下に記載します。
テストページでクローキングを行わない
Googlebot と人間のユーザーに対して、異なる URL のセットを提示しないでください。これはクローキングと呼ばれ、テストの実施中であるかどうかにかかわらず、Google のスパムに関するポリシーへの違反となります。スパムに関するポリシーに違反すると、Google 検索結果でサイトの掲載順位が下げられたり、検索結果からサイトが削除されたりする可能性があります。テストによってこのような望ましくない結果を招くことは避けるべきです。
サーバー側のロジックや robots.txt などの方法を使用してこのような行為を行った場合も、クローキングと判断されます。
代わりに、以下に説明するようにリンクやリダイレクトを使用してください。
テストの管理に Cookie を使用している場合、Googlebot では Cookie が通常サポートされないことに注意してください。つまり、ユーザーがブラウザで Cookie を受け入れていない場合にアクセスできるバージョンのコンテンツだけが、表示されることになります。
rel="canonical"
リンクを使用する
複数の URL を使用してテストを実行している場合は、代替 URL のすべてで rel="canonical"
リンク属性を使用して、元の URL が優先されるバージョンであることを示すことができます。この場合の意図に沿ったものとして、noindex
meta
タグではなく、rel="canonical"
を使用することをおすすめします。たとえば、ホームページのパターンをテストする場合、検索エンジンは元のホームページをインデックスに登録し続けることが望まれます。そこで、すべてのテスト URL が元の URL の重複またはパターンであり、正規の URL である元の URL とともにまとめて処理される必要があることを検索エンジンに認識させることが求められます。このような場合に rel="canonical"
ではなく noindex
を使用すると、予期しない悪影響をもたらすことがあります。
301
リダイレクトではなく、302
リダイレクトを使用する
テストで元の URL からパターンの URL にユーザーをリダイレクトする際には、301 (permanent)
リダイレクトではなく、302 (temporary)
リダイレクトを使用します。これにより、このリダイレクトは一時的な(テストの実行中にのみ行われる)ものであり、インデックス中の元の URL をリダイレクト先(テストページ)に置き換えることなく保持すべきであることを、検索エンジンに通知できます。JavaScript ベースのリダイレクトも使用できます。
テストは必要な期間だけ実行する
信頼できるテスト結果を得るために必要な時間は、コンバージョン率やウェブサイトのトラフィックの量など、さまざまな要因によって異なります。優れたテストツールは、信頼できる結論を導くために十分なデータが収集されると、ユーザーにその旨通知します。テストが完了したら、希望するコンテンツのパターンを使用してサイトを更新し、テストに使用したすべての要素(代替 URL やテスト スクリプト、マークアップなど)をできる限り速やかに削除してください。Google は、必要以上に長くテストを実行しているサイトを検出した場合、検索エンジンを欺く意図があるものとみなし、適宜措置を講じることがあります。コンテンツの 1 パターンを大半のユーザーに配信している場合は、特に注意が必要です。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-04 UTC。
[null,null,["最終更新日 2025-08-04 UTC。"],[[["\u003cp\u003eWebsite testing involves comparing different versions of a website or page to see how users react.\u003c/p\u003e\n"],["\u003cp\u003eTo minimize search impact during testing, use \u003ccode\u003erel="canonical"\u003c/code\u003e for alternate URLs, 302 redirects for temporary variations, and avoid cloaking.\u003c/p\u003e\n"],["\u003cp\u003eConclude tests promptly after gathering sufficient data and update your site with the winning variation to prevent potential search engine penalties.\u003c/p\u003e\n"],["\u003cp\u003eWhile testing can impact Google Search results, following best practices ensures minimal disruption and accurate indexing.\u003c/p\u003e\n"]]],["To minimize the impact of A/B testing on Google Search, avoid cloaking and use `rel=\"canonical\"` links on alternate URLs to indicate the original as preferred. Employ `302` redirects for temporary URL variations instead of `301`. Run tests only as long as necessary and promptly remove testing elements afterward. Small content variations generally don't significantly affect search performance. If tests run excessively, Google may consider it deceptive.\n"],null,["# A/B Testing Best Practices for Search | Google Search Central\n\nMinimize A/B testing impact in Google Search\n============================================\n\n\nThis page covers how to ensure that testing variations in page content or page URLs has\nminimal impact on your Google Search performance. It does not give instructions on how to\nbuild or design tests, but you can find more resources about testing at the end of this page.\n\nOverview of testing\n-------------------\n\n\nWebsite testing is when you try out different versions of your website (or a part of your\nwebsite) and collect data about how users react to each version.\n\n- **A/B testing** is where you test two (or more) variations of a change. For example, you may test different fonts on a button to see if you can increase button clicks.\n- **Multivariate testing** is where you test more than one type of change at a time, looking for the impact of each change as well as potential synergies between the changes. For example, you might try several fonts for a button, but also try changing (and not changing) the font of the rest of the page at the same time. Is a new font easier to read and so should be used everywhere? Or is the benefit that the button font looks different to the rest of the page, helping it draw attention?\n\n\nYou can use software to compare behavior with different variations of your pages\n(parts of a page, entire pages, or entire multi-page flows), and track which version is most\neffective with your users.\n\n\nYou can run tests by creating multiple versions of a page, each with its own URL.\nWhen users try to access the original URL, you redirect some of them to\neach of the variation URLs and then compare users' behavior to see which page is most\neffective.\n\n\nYou can also run tests without changing the URL by inserting variations dynamically on the\npage. You can use JavaScript to decide which variation to display.\n\n\nDepending on what types of content you're testing, it may not even matter much if Google\ncrawls or indexes some of your content variations while you're testing. Small changes, such as\nthe size, color, or placement of a button or image, or the text of your \"call to action\" (\"Add\nto cart\" vs. \"Buy now!\"), can have a surprising impact on users' interactions with your page,\nbut often have little or no impact on that page's search result snippet or ranking.\n\n\nIn addition, if we crawl your site often enough to detect and index your experiment, we'll\nprobably index the eventual updates you make to your site fairly quickly after you've\nconcluded the experiment.\n\nBest practices when testing\n---------------------------\n\n\nHere is a list of best practices to avoid any bad effects on your Google Search behavior while\ntesting site variations:\n\n### Don't cloak your test pages\n\n\nDon't show one set of URLs to Googlebot, and a different set to humans. This is called\n[cloaking](/search/docs/essentials/spam-policies#cloaking),\nand is against our\n[spam policies](/search/docs/essentials/spam-policies),\nwhether you're running a test or not. Remember that infringing our spam policies can get your\nsite demoted or removed from Google search results---probably not the desired outcome of your\ntest.\n\n\nCloaking counts whether you do it by server logic or by robots.txt, or any other method.\nInstead, use links or redirects as described next.\n\n\nIf you're using cookies to control the test, keep in mind that Googlebot generally doesn't\nsupport cookies. This means it will only see the content version that's accessible to users\nwith browsers that don't accept cookies.\n\n### Use `rel=\"canonical\"` links\n\n\nIf you're running a test with multiple URLs, you can use the\n[`rel=\"canonical\"` link attribute](https://support.google.com/webmasters/answer/139394)\non all of your alternate URLs to indicate that the original URL is the preferred version. We\nrecommend using `rel=\"canonical\"` rather than a `noindex` `meta` tag\nbecause it more closely matches your intent in this situation. For instance, if you are\ntesting variations of your home page, you don't want search engines not to index your\nhome page; you just want them to understand that all the test URLs are close duplicates or\nvariations on the original URL and should be grouped together, with the original URL as the\ncanonical. Using `noindex` rather than `rel=\"canonical\"` in such a\nsituation can sometimes have unexpected bad effects.\n\n### Use `302` redirects, not `301` redirects\n\n\nIf you're running a test that redirects users from the original URL to a variation URL,\nuse a [`302 (temporary)` redirect](/search/docs/crawling-indexing/301-redirects#temporary),\nnot a `301 (permanent)` redirect. This tells search engines that\nthis redirect is temporary---it will only be in place as long as you're running the experiment---\nand that they should keep the original URL in their index rather than replacing it with the\ntarget of the redirect (the test page).\n[JavaScript-based redirects](/search/docs/crawling-indexing/301-redirects#jslocation)\nare also fine.\n\n### Run the experiment only as long as necessary\n\n\nThe amount of time required for a reliable test will vary depending on factors like your\nconversion rates, and how much traffic your website gets; a good testing tool tells you\nwhen you've gathered enough data to draw a reliable conclusion. Once you've concluded the\ntest, update your site with the desired content variation(s) and remove all\nelements of the test as soon as possible, such as alternate URLs or testing scripts and\nmarkup. If we discover a site running an experiment for an unnecessarily long time, we may\ninterpret this as an attempt to deceive search engines and take action accordingly. This is\nespecially true if you're serving one content variant to a large percentage of your users.\n\nMore information about testing\n------------------------------\n\n- [Google Analytics article](https://support.google.com/analytics/answer/9366791) on content experiments\n- [Google Analytics content testing tools](https://marketingplatform.google.com/about/analytics/)\n- Ask questions about testing on the [Analytics Help Forum](https://support.google.com/analytics/community)\n- Ask questions about impact on search results in the [Google Search Central Help Forum](https://support.google.com/webmasters/community)."]]