{"slug": "my-rank-check-was-accurate-for-the-wrong-country", "title": "My Rank Check Was Accurate. For the Wrong Country.", "summary": "A developer tracking a commercial site's search rankings found their scripted search-API check and an AI browser agent disagreed completely, because the browser agent's connection had silently moved to another country, so it reported Google results for the wrong location. The engineer now requires every result to record Google's displayed location, discards runs from unexpected locations from history and alerts, and moved the weekly job to scripted checks pinned explicitly to US-wide and city-level locations, keeping separate histories for each.", "body_md": "I track a commercial site's position on about a dozen money queries every Monday, two ways. A script calls a search API with the location set to the United States. And a browser agent, an AI that drives a real browser, runs the same queries in a private, signed-out window and reports what Google shows: positions, the top three results, whether an AI Overview appears and who it cites.\n\nTwo methods, so that one can catch the other's mistakes.\n\nThis Monday they disagreed about everything.\n\nThe script said my site had slipped from #1–2 to #4–6 on its main queries over two weeks, and a competitor now held #1 on all of them.\n\nThe browser check said my site was #1 on three of those queries and was the first source cited in Google's AI Overview. The same competitor had fallen from #1 to between #12 and #16. Its \"changes since last week\" line was a list of collapses.\n\nOne of these meant \"you're losing\", and the other meant \"you're winning, and your rival just fell off a cliff\". I had a page edit half-planned based on the first one.\n\nThe agent's answer started, as the request asks it to, with the location Google displayed at the bottom of the results page. It wasn't the US. The browser was running on a connection in another country, the one the agent's machine actually sits in. In previous weeks it had been routed through a US connection. This week that route was gone, and nothing in the job noticed.\n\nThe data wasn't wrong. It was a faithful snapshot of what Google shows a searcher in that country. My buyers aren't searching from there.\n\n**A ranking isn't a property of the page. It's a property of the searcher.**\n\nI had been treating \"position\" as a fact about my page that a check measures, like page weight or response time. It isn't. Google ranks a page for a person: a country, often a city, a language, sometimes their history. There is no position without a location, and a check that doesn't record its location hasn't measured anything you can compare.\n\nOnce I started paying attention to location, I added a second view to the scripted check: the same queries pinned to the main city in the market, alongside the generic US results. On most queries they agree. On some they don't:\n\n| Query | US-wide | Pinned to the city | \n|---|---|---|\n| Main commercial query | #2 | #4 | \n| Secondary query | #6 | #4 | \n| Local rentals query | #7 | #9 | \n\nNeither column is \"the real ranking\". People planning a trip search from home, all over the country. People already in the city search from there, and Google weights local businesses more for them. Both audiences matter, and they see different pages.\n\n**Every result records its location.** The browser check now has to report Google's displayed location on the first line, and the review step that reads its answer checks that line before anything else. This week that review is what caught the problem. It flagged the answer as \"wrong location, don't compare with last week\" before I acted on it.\n\n**A run from a different location is not a data point.** It doesn't go into the history, and it doesn't count toward \"dropped two weeks in a row\" alerts. Comparing this week's foreign-location run with last week's US run would have produced exactly the dramatic swings it showed, out of nothing.\n\n**Pinned locations beat \"wherever the checker is\".** The weekly job moved entirely to the scripted check, which sets the location explicitly, once US-wide and once pinned to the city, with a separate history file for each so neither view's week-on-week comparison is polluted by the other. The browser agent still does the things only a browser can, like reading AI Overviews in full. It no longer owns the number.\n\n**Search Console isn't a tiebreaker for this.** Its \"average position\" blends every location, device and query variant into one figure. Useful for trends, useless for \"where do I rank for a buyer in this market today\". I'd already been burned by a page that ranked #6 and #20 for the same query and averaged #13.\n\nAny measurement that depends on who is asking, such as rankings, prices, ad auctions or what an AI answer says, needs the \"who\" recorded next to the number, and needs it held constant between runs you intend to compare.\n\nMy check didn't fail. It answered a question I hadn't asked, precisely and confidently, and it looked exactly like the answer to the one I had asked.", "url": "https://wpnews.pro/news/my-rank-check-was-accurate-for-the-wrong-country", "canonical_source": "https://dev.to/tedagentic/my-rank-check-was-accurate-for-the-wrong-country-3hpm", "published_at": "2026-11-19 09:09:39+00:00", "updated_at": "2026-11-19 09:12:13.136646+00:00", "lang": "en", "topics": ["ai-search", "generative-engine-optimization", "ai-agents"], "entities": ["Google", "Google Search Console", "Google AI Overviews"], "also_reported_by": [], "takeaway": "A ranking is a property of the searcher, not the page: record Google's displayed location on every check and discard any run from an unexpected location before comparing it with history.", "recommendation": {"advice": "Have every ranking check report Google's displayed location first and reject runs from unexpected locations before comparing them with prior weeks.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/my-rank-check-was-accurate-for-the-wrong-country", "markdown": "https://wpnews.pro/news/my-rank-check-was-accurate-for-the-wrong-country.md", "text": "https://wpnews.pro/news/my-rank-check-was-accurate-for-the-wrong-country.txt", "jsonld": "https://wpnews.pro/news/my-rank-check-was-accurate-for-the-wrong-country.jsonld"}}