# How to test geo targeting

> To test geo targeting, list the signals your code reads, then load each market from a browser where IP, timezone, language and location all agree.

Source: https://mosaicbrowser.com/guides/test-geo-targeting

## How to test geo targeting

To test geo targeting, first list which signals your code reads: IP address, Accept-Language, the browser's timezone or the Geolocation API. Then load each market from a browser where all of those point at the same place, and add one deliberate mismatch per test to see which signal wins.

![One market per browser, every signal agreeing, beside a screenshot: a proxy provider in Mosaic: one proxy line that gives every profile a separate session](https://mosaicbrowser.com/covers/test-geo-targeting.webp)

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](https://developer.chrome.com/docs/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](https://developer.chrome.com/docs/devtools/settings/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.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Matched to the proxy’s IP](https://mosaicbrowser.com/features/exit-matching)

## 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](https://mosaicbrowser.com/guides/proxy-timezone-mismatch-fix) 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](https://developers.google.com/search/docs/specialty/international/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](https://mosaicbrowser.com/guides/check-google-search-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](https://mosaicbrowser.com/features/exit-matching)). That makes the "every signal agrees" case the default, and leaves you to break one signal on purpose.

1. 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](https://mosaicbrowser.com/features/proxy-providers)).
2. 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.
3. 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.
4. 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.
5. For a mismatch case, edit one profile's language or timezone in the editor and leave the IP alone.

![A proxy provider in Mosaic: one proxy line that makes a separate session for every profile](https://mosaicbrowser.com/shots/provider-mint.png)
*One provider, a session per market*

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](https://mosaicbrowser.com/pricing) sets out.

## Sources

1. [Google Search Central: How Google crawls locale-adaptive pages](https://developers.google.com/search/docs/specialty/international/locale-adaptive-pages), read November 2, 2026
2. [Chrome DevTools: Sensors panel](https://developer.chrome.com/docs/devtools/sensors), read November 2, 2026
3. [Chrome DevTools: Custom locations](https://developer.chrome.com/docs/devtools/settings/locations), read November 2, 2026

## Questions

### Can I test geo targeting with Chrome DevTools alone?

Partly. The Sensors panel overrides geolocation, and a custom location in DevTools settings can carry a timezone ID and a locale. None of it changes your IP address, so a server-side geo lookup still sees where you are.

### Why does my geo redirect hide pages from Google?

Google's documentation says Googlebot's default IP addresses appear to be in the USA and that it sends no Accept-Language header. A site that redirects by IP or language can therefore show Google only the US version. Google recommends separate URLs per locale with hreflang.

### What should a geo test do when the location is unknown?

Fall back to something true, such as the visitor's own timezone or a neutral default page, and test that path on purpose. A lookup that fails silently and lands everyone in one country is the most common geo bug we have met, including in our own code.

### Do I need residential proxies to test geo targeting?

For your own server's IP lookup, any proxy in the right country will do. For third-party pages, ads and anything with bot defences in front, a residential IP is closer to what a real visitor sends.

## Related

[How to test your website from different countries](https://mosaicbrowser.com/guides/test-your-website-from-different-countries): Test your website from different countries with a browser per country whose IP, language and clock are local, then work through a fixed list of checks.

[How to check Google search results from another location](https://mosaicbrowser.com/guides/check-google-search-results-from-another-location): To check Google search results from another location, search signed out from a browser whose IP, clock and language are there, then read the footer.

[Match browser timezone to proxy IPs, automatically](https://mosaicbrowser.com/features/exit-matching): No need to match browser timezone to proxy by hand: Mosaic sets each profile's timezone, language and location from the measured IP, before every launch.

[Proxy timezone mismatch fix, cause by cause](https://mosaicbrowser.com/guides/proxy-timezone-mismatch-fix): A proxy timezone mismatch fix starts with the cause. Six usual ones, from a proxy swapped after the profile was made to a renamed zone, and the fix for each.

[Provider accounts: one proxy line, one IP per profile](https://mosaicbrowser.com/features/proxy-providers): Paste your proxy seller's line once and Mosaic makes a separate session for every profile, so each one browses from its own IP address.







[Proxies for ad verification: which type to use](https://mosaicbrowser.com/guides/proxies-for-ad-verification): The best proxies for ad verification are residential, in the ad's target city, with one sticky session per profile. Datacenter IPs fit link checks only.

## Run this guide on your own accounts

Every Mosaic profile is a fingerprint, a proxy IP and a cookie jar that agree with each other, kept on your computer. 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.
