Google Analytics · Tag Manager
From Classic Analytics to Google Analytics 4
Remove _setDomainName, _link and _linkByPost code, install the Google tag, and set up cross-domain measurement and unwanted referrals the current way.
Guides
Guides for every place where example-petstore.com or example-commerce-host.com ends up in real sites and code, grouped by task: fixing site settings, developing and testing, security, and background.
Analytics, structured data and Search Console settings copied from Google’s examples.
Google Analytics · Tag Manager
Remove _setDomainName, _link and _linkByPost code, install the Google tag, and set up cross-domain measurement and unwanted referrals the current way.
Structured data
What the search box markup with query.example-petstore.com did, why Google dropped it, and the WebSite markup to use today.
Search Console
A complete site move with 301 redirects and the Change of Address tool, without example addresses in canonicals, sitemaps or hreflang.
API clients, mock servers and example values that never reach a stranger’s server.
APIs · SDKs
Keep base URLs out of code, point them at the real service, and add a check that stops example addresses from reaching production.
Testing · APIs
Develop and test against Prism, WireMock, MSW or json-server instead of an address that belongs to someone else.
APIs · OpenAPI
The real base URLs of the Swagger Petstore sample API, working requests, the test key, and how to run your own copy with Docker.
Documentation
Reserved domains, IP ranges, AS numbers, MAC addresses, phone numbers and test cards for examples that stay harmless.
When a key, token or password was sent here or committed to Git.
Security
Keys, tokens or passwords were sent to an example domain. Revoke and replace them, with direct links to the revocation pages of common providers.
Security · Git
A key was committed. Revoke it, remove it from the history with git-filter-repo, clean up GitHub and block the next leak.
Where the name comes from, which names are reserved, and the terms used on this site.
History
When and where Google used example-petstore.com and example-commerce-host.com, from 2009 to today, with archived sources.
Reference
Which names are reserved for documentation, why look-alikes like this one get real traffic, and what to use instead.
Reference
Short explanations of _setDomainName, linker, _gl, unwanted referrals, SearchAction and 410 Gone.