---
title: "example-petstore.com の経緯: 2009年から現在まで"
description: "example-petstore.com と example-commerce-host.com を Google が使った時期です。2009年の従来のアナリティクス、2014年のサイトリンク検索ボックス、Search Console。"
url: https://example-petstore.com/ja/history
language: ja
---

# example-petstore.com の経緯

example-petstore.com が初めて登場したのは 2009年3月、Google の従来のアナリティクスのドキュメントでした。その後 15 年にわたり、3 世代の Google のドキュメントに受け継がれ、数えきれないほどコピーされました。以下の日付はすべて、アーカイブされた出典に基づいています。

## 2009年より前

初期の Google アナリティクスのドキュメントでは、別の名前が使われていました。サードパーティのショッピング カートに関するヘルプ記事では、少なくとも 2007年から2010年まで `www.mystore.com` と `www.securecart.com` が使われており、2009年3月1日までにアーカイブされた従来のアナリティクスの以前のガイド「Domains & Directories」のどのバージョンにも、ペットショップは登場しません。

## 従来のアナリティクス（2009～2024年）

1. **2009年3月** — Google が従来のアナリティクス（`ga.js`）のドキュメントを再編成し、新しい `tracking/` セクションを設けます。2009年3月27日に初めてアーカイブされた、書き直されたガイド「Tracking Multiple Domains」で、サブドメイン dogs. と cats. を持つ www.example-petstore.com、`www.example-commerce-host.com/petStoreCart` のカート、`_setDomainName(".example-petstore.com")` や `_linkByPost('www.example-commerce-host.com/petStoreCart/begin.php')` などのコードが登場します。ペットショップへの言及は 18 回あります。
2. **2011年** — サードパーティのショッピング カートに関するヘルプ記事が、同じ組み合わせ（`www.example-petstore.com` と `www.example-commerce-host.com/petStoreCart`）に切り替わります。
3. **2013～2014年** — developers.google.com に掲載された非同期版のガイドで、`_gaq.push(['_setDomainName', 'example-petstore.com'])` と、`http://dogs.example-petstore.com/intro.html` への「See my pet store」リンクが示されます。
4. **2024年7月1日** — 従来のアナリティクスとユニバーサル アナリティクスのドキュメントが、ユニバーサル アナリティクスとともに廃止されます。

## SEO のドキュメント（2014～2019年）

1. **2014年9月** — サイトリンク検索ボックスの最初のドキュメントで、`"url": "https://www.example-petstore.com/"` と target `host.example-petstore.com/search?q={search_term}` が使われます。この例は 2014年9月下旬まで掲載されていました。
2. **2014年10月～2015年半ば** — 最もよく知られたバージョンで `query.example-petstore.com/search?q={search_term_string}` が使われ、テキストの例として `www.example-petstore.com/search?q=collars` と `…?q=leashes` も示されます。
3. **2015年（遅くとも 9月まで）** — Google の構造化データのドキュメントが `example.com` に切り替わります。
4. **2014年10月～少なくとも2019年9月** — Search Console の Change of Address ツールのヘルプで、移転が例として使われます。2014年10月～2015年3月は `www.example-petstore.com` から `www.example.com` への移転、2015年4月から少なくとも 2019年9月までは `http://fish.example-petstore.com` から `http://example.com` または `http://example-petstore.com` への移転です。後継のページでは `example.com` のみが使われています。

## 現行のドキュメント

Google タグに関する Google の現行のガイド「Measure activity across multiple domains」は、今も example-petstore.com のウェブサイトと、example-commerce-host.com/example-petstore で運営されるショップの説明から始まります。この文は、2021年3月の時点で前身のページにすでに掲載されていました。コードサンプルでは `example.com` が使われ、ドメイン名はこのページのどの翻訳でも変更されていません。

## コピーと翻訳

- **2009年7月** — Google グループのスレッドで `petStoreCart/legalTerms.php` のスニペットが引用されます。確認できた中で最も古い第三者によるコピーです。
- **2009～2010年** — 中国語とフランス語のアナリティクス関連ブログが、dogs./cats.example-petstore.com と example-commerce-host.com/petStoreCart を翻訳せずにそのまま使用します。
- **2013年4月** — WooCommerce の機能リクエストに、`_gaq.push(['_setDomainName', 'example-petstore.com']);` がそのまま貼り付けられます。
- **2014～2019年** — SEO ブログ（2015年の Semrush や LCN など）、フォーラム、少なくとも 5 件の Stack Overflow の質問で、`query.example-petstore.com` を含む検索ボックスのマークアップがコピーされます。
- **2019年** — ドイツの試験対策教材で、ショップが `www.example-zoohandlung.de` に翻訳されますが、`www.example-commerce-host.com/example-zoohandlung/` はそのまま残されます。

これらのドメインをデフォルト設定として含むソフトウェア製品は見つかっていません。コピーはすべて、貼り付けられたスニペットに由来します。

## 終了

1. **2023年7月1日** — 標準のユニバーサル アナリティクス プロパティがデータの処理を停止します（360 プロパティは 2024年7月1日）。従来のアナリティクスのコードも効果がなくなります。
2. **2024年7月1日** — ユニバーサル アナリティクスの提供が終了し、そのドキュメントも廃止されます。
3. **2024年11月21日** — Google がサイトリンク検索ボックスの表示を終了します。

## 関連ガイド

### [サンプル ドメイン](https://example-petstore.com/ja/example-domains)

ドキュメント用に予約された名前、このドメインのような類似名に実際のトラフィックが届く理由、代わりに使う名前。

### [用語集](https://example-petstore.com/ja/glossary)

`_setDomainName`、linker、`_gl`、除外する参照元、SearchAction、410 Gone の短い説明。

### [従来のアナリティクスから Google Analytics 4 へ](https://example-petstore.com/ja/guides/google-analytics-cross-domain)

`_setDomainName`、`_link`、`_linkByPost` のコードを削除し、Google タグを設置して、クロスドメイン測定と除外する参照元を現在の方法で設定します。

## 出典

- [3rd-party shopping carts (2007 snapshot)](https://web.archive.org/web/20070517041222/http://www.google.com:80/support/googleanalytics/bin/answer.py?answer=55532) Google Analytics Help via the Wayback Machine
- [Domains & Directories, the earlier guide (1 March 2009 snapshot)](https://web.archive.org/web/20090301024808/http://code.google.com:80/apis/analytics/docs/gaTrackingSite.html) Google Code via the Wayback Machine
- [Tracking Multiple Domains, new version (27 March 2009 snapshot)](https://web.archive.org/web/20090327154737/http://code.google.com:80/apis/analytics/docs/tracking/gaTrackingSite.html) Google Code via the Wayback Machine
- [3rd-party shopping carts (2011 snapshot)](https://web.archive.org/web/20110828104129/http://www.google.com:80/support/analytics/bin/answer.py?answer=55532) Google Analytics Help via the Wayback Machine
- [Tracking Multiple Domains (2013 snapshot)](https://web.archive.org/web/20130115024413/https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite) Google Developers via the Wayback Machine
- [Sitelinks search box (September 2014 snapshot)](https://web.archive.org/web/20140906020658/https://developers.google.com/webmasters/richsnippets/sitelinkssearch) Google Developers via the Wayback Machine
- [Sitelinks search box (2015 snapshot)](https://web.archive.org/web/20150316142805/https://developers.google.com/structured-data/slsb-overview) Google Developers via the Wayback Machine
- [Use the change of address tool (2015 snapshot)](https://web.archive.org/web/20150425234635/https://support.google.com/webmasters/answer/83106?hl=en) Search Console Help via the Wayback Machine
- [Measure activity across multiple domains](https://developers.google.com/tag-platform/devguides/cross-domain) Google Tag Platform
- [Google Groups thread (July 2009)](https://groups.google.com/g/google-analytics-data-export-api/c/vAlssWHVbmM) Google Groups
- [WooCommerce issue #2923 (April 2013)](https://github.com/woocommerce/woocommerce/issues/2923) GitHub
- [Google Analytics Prüfung, Frage 85 (2019)](https://www.seo-woman.de/google-analytics-pruefung-frage-85/) seo-woman.de
- [Universal Analytics has been replaced by Google Analytics 4](https://support.google.com/analytics/answer/11583528) Google Analytics Help
- [Farewell, Sitelinks Search Box](https://developers.google.com/search/blog/2024/10/sitelinks-search-box) Google Search Central Blog
