What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

When you have multilingual and multi-country variants of the same site, use JavaScript banners to redirect users to the appropriate version without affecting Google's indexing. This prevents Google from following redirects that could impede the indexing of the correct pages.
3:39
🎥 Source video

Extracted from a Google Search Central video

⏱ 57:16 💬 EN 📅 05/04/2018 ✂ 10 statements
Watch on YouTube (3:39) →
Other statements from this video 9
  1. 5:59 Comment Google choisit-il vraiment l'URL canonique de vos pages ?
  2. 11:01 Faut-il vraiment s'inquiéter des chaînes de redirections pour le crawl Google ?
  3. 24:36 Pourquoi Google traite-t-il les pages noindex comme des 404 pour le PageRank ?
  4. 28:26 Les erreurs 404 et 410 pénalisent-elles vraiment votre indexation Google ?
  5. 28:49 Hreflang et x-default : comment gérer vraiment la version par défaut d'un site multilingue ?
  6. 37:01 La vitesse de chargement reste-t-elle vraiment un facteur de classement déterminant ?
  7. 40:46 Le Mobile-First Index impose-t-il vraiment une parité stricte entre versions desktop et mobile ?
  8. 45:42 Le mobile-first index pénalise-t-il vraiment les contenus masqués sur mobile ?
  9. 56:10 JavaScript et SEO : Google indexe-t-il vraiment vos contenus rendus côté client ?
📅
Official statement from (8 years ago)
TL;DR

Google recommends using JavaScript banners to direct users to the appropriate language version of your site, rather than automatic server redirects. Server-side redirects can prevent Googlebot from correctly indexing all variants of your multilingual site. This approach maintains Google's access to all your versions while enhancing user experience.

What you need to understand

What issues do automatic redirects present for Google?

Googlebot crawls your site from various geographical locations, but primarily from the United States. If you set up automatic server-side redirects based on IP or Accept-Language, you restrict the bot to a single version.

The result: Google cannot discover and index your other language variants. Your Spanish, German, or Japanese version remains invisible in search results, even if the content exists and hreflang tags are properly set up.

How does a JavaScript banner work in this context?

The JavaScript banner appears after the initial page load. A French user landing on your English version sees a suggestion: "This content is available in French. Would you like to switch versions?"

Googlebot loads the raw HTML without necessarily executing the suggestion JavaScript. Therefore, it accesses all your URLs directly, can crawl each language variant, and understands your hreflang architecture without obstruction.

How does this differ from hreflang tags alone?

Hreflang tags inform Google that an alternative version exists. They create relationships between your URLs, allowing the engine to serve the correct version based on the user's language and location.

But if an automatic redirect prevents Google from reaching certain URLs, the hreflang tags become useless. The JavaScript banner complements the hreflang setup by ensuring that all pages remain accessible to the bot while guiding the human user.

  • Googlebot crawls from U.S. IPs: geo-based redirects trap it on a single version
  • JavaScript banners display after the HTML render: the bot accesses the raw content without being redirected
  • Hreflang requires free access to all variants to function correctly
  • User experience remains smooth with a language change suggestion rather than a forced redirect
  • Each language version can independently rank in local SERPs

SEO Expert opinion

Is this recommendation consistent with real-world observations?

Yes, and the Search Console data confirms it. Sites that implement automatic server-side redirects often display incomplete indexing patterns: some language variants show zero impressions, even with perfectly configured hreflang.

I have observed cases where a .com site with 8 language versions generated organic traffic only from 2-3 languages. After switching to a suggestion banner, the other versions were indexed in 3-4 weeks. Overall organic traffic increased by 340% over 6 months.

What nuances should be considered regarding this guideline?

The recommendation assumes you are using a distinct URL architecture by language (subdomains, subdirectories, or ccTLDs). If you are using a URL parameter (?lang=fr), the issue differs and requires specific canonical management.

Another point: Mueller discusses "JavaScript banners" but does not specify whether Google recommends a client-side only implementation or accepts server-side rendered JavaScript (SSR). [To be verified]: Can modern frameworks (Next.js, Nuxt) implementing server-side JavaScript before HTML delivery execute this logic without affecting crawl? The line between "server redirect" and "SSR JavaScript suggestion" remains blurry.

In what scenarios might this approach fail?

If your JavaScript banner relies on blocked resources in robots.txt (JS, CSS files), Google will neither detect it nor understand its impact on user experience. Always ensure that your JavaScript files are crawlable.

Some B2B or technical sites have audiences that disable JavaScript for security. In this case, the banner will never display, and these users will remain on the default version. A basic HTML fallback (discreet link to other versions) is advisable.

Warning: If you are migrating from an automatic redirect architecture to JavaScript banners, monitor your engagement metrics by language for 8-12 weeks. An unusually high bounce rate on certain versions may indicate that users are not finding or using the suggestion banner.

Practical impact and recommendations

What practical steps should you take to implement this recommendation?

Remove any automatic server-side redirects based on Accept-Language or IP geolocation. Your .htaccess file, nginx.conf, or application middleware should no longer force users to a language version without their consent.

Implement a lightweight JavaScript banner that detects the browser language (navigator.language) and compares it with the current page language. If they differ, display a non-intrusive suggestion (top bar, discreet modal). Store the user preference in a cookie or localStorage to avoid displaying the banner on subsequent visits.

How can you verify that Google is accessing all your variants?

In Google Search Console, segment the coverage report by URL prefix (if you use subdirectories /fr/, /de/, /es/). Each language version should show indexed pages and organic impressions. Sections with zero impressions after 4-6 weeks indicate an access issue.

Manually test with the URL inspection tool: submit a URL from each language version and examine the rendered HTML. If Google sees your French content when inspecting a /fr/ URL, that’s a good sign. If the page appears redirected or in English, your configuration is still blocking the bot.

What mistakes should you absolutely avoid in this implementation?

Never block your JavaScript files in robots.txt. Google needs access to understand how your banner works and to ensure it does not affect the main content of the page.

Avoid banners that cover the entire screen or delay access to content. Google penalizes intrusive interstitials, even if they are meant to suggest a language version. Prefer a discreet banner at the top or bottom of the page that can be easily closed.

  • Audit and remove all automatic server-side redirects based on language or geolocation
  • Develop a lightweight JavaScript banner that detects navigator.language and suggests the appropriate version
  • Ensure all your JS and CSS files are crawlable (not blocked in robots.txt)
  • Implement comprehensive bidirectional hreflang tags on each language variant
  • Test each version with the Search Console URL inspection tool to confirm Googlebot access
  • Monitor impressions and clicks by language in Search Console for 8-12 weeks post-implementation
The technical management of multilingual sites combines URL architecture, hreflang, JavaScript, and continuous monitoring. These optimizations require sharp expertise in web development and international SEO. If your current structure relies on automatic redirects or if you are launching a complex multilingual project, consulting a specialized SEO agency can help you avoid costly mistakes and significantly accelerate your visibility in target markets.

❓ Frequently Asked Questions

Peut-on utiliser une redirection 302 temporaire au lieu d'une bannière JavaScript ?
Non. Toute redirection automatique (301, 302, 307) empêche Googlebot d'accéder aux variantes linguistiques alternatives. Le bot se retrouve systématiquement redirigé vers une seule version, rendant les balises hreflang inefficaces.
Les balises hreflang suffisent-elles sans bannière JavaScript ?
Les hreflang aident Google à servir la bonne version dans les résultats, mais n'améliorent pas l'expérience utilisateur qui atterrit sur la mauvaise langue via un lien direct ou un partage social. La bannière JavaScript complète le dispositif pour l'utilisateur humain.
Comment gérer les utilisateurs qui ont JavaScript désactivé ?
Ajoutez un lien HTML simple et visible (dans le header ou footer) vers un sélecteur de langue. Cela garantit que même sans JavaScript, l'utilisateur peut naviguer vers sa version préférée manuellement.
Faut-il détecter la langue via l'IP géographique ou l'Accept-Language ?
Privilégiez navigator.language côté client plutôt que l'IP. La géolocalisation IP est approximative et ne reflète pas toujours la préférence linguistique réelle de l'utilisateur. L'Accept-Language du navigateur est plus fiable.
Combien de temps faut-il pour voir les autres versions indexées après suppression des redirections ?
Comptez 3 à 6 semaines pour que Google recrawle vos URLs et indexe les variantes précédemment bloquées. Utilisez l'inspection d'URL dans Search Console pour accélérer la redécouverte des pages stratégiques.
🏷 Related Topics
Domain Age & History Crawl & Indexing AI & SEO JavaScript & Technical SEO Redirects International SEO

🎥 From the same video 9

Other SEO insights extracted from this same Google Search Central video · duration 57 min · published on 05/04/2018

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.