Sub topic 8
Context: location, language, and settings
This chapter assumes you know the crawl, index, and serve stages and how Google interprets a query. It also assumes you can read simple HTML. Here we look at how the searcher's situation changes which results appear.
Why the same query gives different results
Two people can type the same words and see different pages. Google treats the searcher's context as part of the query. A search for "football" in London and a search for "football" in Dallas mean different sports. A search for "pharmacy open now" has no useful answer without a location.
Context does not replace relevance and quality. It changes which relevant pages count as the best match for this person.
The main context signals
| Signal | What Google uses it for | Example |
|---|---|---|
| Location | Local results, regional meaning, country-specific content | "bakery" shows nearby shops |
| Language | Showing pages the searcher can read | A Spanish query favors Spanish pages |
| Search settings | Explicit preferences the user chose | SafeSearch on, preferred language, country |
| Past activity | Optional personalization, when the user allows it | Familiar sites may appear higher |
Location
Google estimates location from device signals and the country version of Google in use. It uses this most for queries with local intent, such as "plumber" or "coffee near me". For these queries, nearby businesses with complete, accurate information tend to appear.
For a business, this means your Google Business Profile, your address and hours, and your site's local content matter. For an informational site, location matters less. An explanation of how to repot a plant reads the same in every city.
Language
Google detects the language of a page from its visible text. It does not rely on the lang attribute or the URL. So if your page is in English but your menu and body mix several languages, Google may be unsure which audience it serves.
Write each page in one main language. Do not machine-translate pages without review, because poor translations are a quality problem as well as a language problem.
Settings
Users can change the language, region, and SafeSearch settings. You cannot control these. SafeSearch can filter explicit content out of results for some users, so a page that mixes mature content into otherwise general material may be hidden from them.
Serving the right version of a page
If you publish the same content for different languages or regions, tell Google how the versions relate. Use hreflang annotations. Each version should list all versions, including itself.
<head>
<link rel="alternate" hreflang="en-us" href="https://www.example.com/us/repot-snake-plant">
<link rel="alternate" hreflang="en-gb" href="https://www.example.com/uk/repot-snake-plant">
<link rel="alternate" hreflang="es" href="https://www.example.com/es/trasplantar-sansevieria">
<link rel="alternate" hreflang="x-default" href="https://www.example.com/repot-snake-plant">
</head>hreflang does not boost ranking. It helps Google swap in the right version for each searcher. The x-default entry names the page to show when no listed language or region matches.
Common errors
- Redirecting visitors automatically by IP address. Googlebot often crawls from the United States, so it may never see your other versions. Offer a visible language or country selector instead.
- Leaving out return links. If page A points to page B with
hreflang, page B must point back to page A. Otherwise Google may ignore the annotation. - Translating only the navigation. The body text decides the page's language, so a translated menu around English content does not make a Spanish page.
- Testing rankings from your own location only. Your results may not match what customers see. Use the Performance report in Search Console to filter by country.
Summary of the working model
Google picks candidates by relevance, then adjusts for the searcher's location, language, and settings. As a site owner, you cannot change the searcher's context. You can make your pages clear about the language and region they serve, and you can link versions together correctly.
Exercise
Your site has an English page for the US and an English page for the UK with similar content. A UK searcher keeps seeing the US page. What should you add, and what must each page include for it to work?
Show answer
Add hreflang annotations: en-us for the US page and en-gb for the UK page, and optionally an x-default entry. Each page must list both versions, including itself, so the annotations are reciprocal. hreflang does not boost ranking. It helps Google show the UK page to UK searchers.