Geo targeting is a function of several inputs, and most bugs live in the cases where those inputs disagree. So testing geo targeting starts with a list of what your code actually reads, then a browser per market where every input agrees, then one test per input that disagrees on purpose.
Step 1: write down which signals decide the location
A page can learn where a visitor is from four places, and each needs a different tool to fake:
| Signal | Read by | What moves it in a test |
|---|---|---|
| IP address | your server, CDN or a geo-IP lookup | a proxy or VPN IP in that country |
Accept-Language header | your server | the browser's language list |
Timezone (Intl.DateTimeFormat().resolvedOptions().timeZone) | your JavaScript | the browser's timezone |
| Geolocation API | your JavaScript, after a permission prompt | a geolocation override |
Search the codebase for each one before testing. A pricing page that picks currency from the IP and copy from Accept-Language has two bugs waiting: a German on holiday in Spain, and an English speaker living in Berlin. Neither is visible from the office.
Step 2: fake the browser-side signals in DevTools
For the JavaScript half, Chrome is enough. In DevTools, the Sensors panel replaces geolocation with a preset city such as Tokyo, custom coordinates, or "Location unavailable" (Chrome DevTools: Sensors, read 2 November 2026). Test the unavailable case; it is the one users with permission denied will hit.
Under DevTools settings, Locations lets you save a custom location with a latitude, a longitude, a Timezone ID such as America/New_York and a Locale such as en-US (Custom locations, read 2 November 2026). Select it in Sensors and the page's clock and locale move with it.
None of this touches the network. Your server still sees your office IP, so DevTools tests the client code and nothing behind it.
Timezone, language and location come from where the proxy’s IP isIn Mosaic: Matched to the proxy’s IP. Timezone, language and location follow the proxy. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.
Mosaic is a desktop app
Email yourself the link and open it on your computer.
How it works: Matched to the proxy’s IP
Step 3: move the IP with a proxy per market
For server-side targeting you need traffic that really leaves from the country. A proxy or VPN with an IP there does that. Two habits keep the results honest:
- One clean browser per market. Cookies from the last test carry the last country's choice: a consent decision, a stored currency, a "You were redirected" flag. A fresh profile per market has none of them.
- Match the browser to the IP. A French IP on a browser that says Chicago and English is a mismatch test, not a French visitor. Run the matched case first, then mismatch one signal at a time.
Proxy and timezone mismatches shows what each mismatch looks like from the page's side.
Step 4: test what search engines see
If the page redirects or swaps content by location, check what a crawler gets. Google's documentation says the default IP addresses of Googlebot "appear to be based in the USA" and that the crawler "sends HTTP requests without setting Accept-Language" (Locale-adaptive pages, read 2 November 2026). Googlebot also crawls from outside the USA, but a locale-adaptive page may still not get every version crawled and indexed. Google recommends separate URLs per locale with hreflang annotations instead.
So one test case worth keeping: a US IP, no Accept-Language, and the page should still link to every other locale. How the pages then rank from each country is a separate check, in checking Google results from another location.
Step 5: test the case where the location is unknown
Every geo lookup fails sometimes: a timeout, a new IP block, a database the service has not updated. What the code does then is part of the targeting.
We shipped exactly this bug in Mosaic. A lookup of the machine's own location ran once at app start, and when that one call failed nothing retried it. Every profile created without a proxy for the rest of the session was then given a location drawn from a table weighted by market share, which leans American: a computer in Austria made profiles that claimed New York, and each was marked as matched. The fix was to resolve the location when it is needed, retry a failure on its own timer, and fall back to the machine's own timezone, never to a table. For a geo test suite, the lesson is to block the lookup on purpose and check the fallback is something true.
Testing geo targeting with Mosaic profiles
Mosaic gives each market its own profile: its own cookie jar, its own IP, and a timezone, language and geolocation set from the IP it measured (IP matching). That makes the "every signal agrees" case the default, and leaves you to break one signal on purpose.
- Paste your proxy seller's line into Proxies as a provider. Mosaic makes a separate session for each profile, so no two markets share an IP (proxy providers).
- Create one profile per market with New profile, setting Source under Connection to the provider and picking the Country. A pick the seller's line format has no word for is refused by name.
- Start the profiles you need. A profile does not open until its proxy has answered and connected, so a test never runs from your own address by accident.
- Select the running profiles, choose Open URL and give it the page under test. Arrange puts the windows in a grid so the markets sit side by side.
- For a mismatch case, edit one profile's language or timezone in the editor and leave the IP alone.

Mosaic is a desktop app, so this suits checks run from a tester's own machine, not a CI server. Pro, at $25 a month (cancel any time), includes the local REST API for scripting the same runs, as pricing sets out.
Sources
- Google Search Central: How Google crawls locale-adaptive pages, read November 2, 2026
- Chrome DevTools: Sensors panel, read November 2, 2026
- Chrome DevTools: Custom locations, read November 2, 2026






