What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

Elements after the hashtag in a URL (called fragments) are generally ignored by Google Search. Google looks at the entire page. In very rare cases, Google may detect that the fragment displays different content, but this is not a recommended practice.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 09/08/2023 ✂ 16 statements
Watch on YouTube →
Other statements from this video 15
  1. Pourquoi Google limite-t-il les sitemaps à 50 000 URLs, index compris ?
  2. Les attributs ARIA améliorent-ils vraiment le SEO de votre site ?
  3. Faut-il vraiment rediriger les URL canonicalisées pour améliorer son référencement ?
  4. Pourquoi l'optimisation technique seule ne fait-elle plus ranker un site ?
  5. Comment vérifier si votre site est sous pénalité manuelle dans Search Console ?
  6. Pourquoi le balisage Product ne sert à rien pour l'immobilier ?
  7. Hreflang fonctionne-t-il vraiment pour du contenu non traduit mais ciblant des pays différents ?
  8. Le contraste des couleurs impacte-t-il vraiment le référencement naturel ?
  9. La balise HTML <article> améliore-t-elle vraiment le référencement ?
  10. Liens relatifs vs absolus : y a-t-il vraiment un impact SEO ?
  11. Faut-il vraiment imposer l'anglais dans les données structurées pour les jours de la semaine ?
  12. Comment vérifier qu'un crawler est réellement Googlebot et bloquer les imposteurs ?
  13. Faut-il vraiment utiliser prefetch et prerender pour améliorer son SEO ?
  14. Faut-il vraiment oublier le cache Google pour diagnostiquer l'indexation ?
  15. Pourquoi Google indexe-t-il du contenu qui n'existe pas sur votre site ?
📅
Official statement from (2 years ago)
TL;DR

Google systematically ignores URL fragments (everything after the #) during crawling and indexing. The only exception: in very rare cases, Google may detect that a fragment displays different content, but this practice is not recommended by Google. In practice, don't rely on hashtags to structure your SEO content.

What you need to understand

What exactly is a URL fragment?

A URL fragment is the portion that follows the hash symbol (#) in a web address. Technically, this fragment is never sent to the server — it stays on the client side, in the browser. Its original purpose? To enable intra-page navigation to a specific HTML anchor.

Example: https://example.com/page#section-2. The fragment #section-2 tells the browser to scroll to the element with the corresponding ID. On the server side, the received request contains only https://example.com/page.

Why does Google claim to ignore these fragments?

Google bases its indexing on HTML content returned by the server. Since fragments are never transmitted to the server, they cannot influence server-side generated content. Googlebot therefore systematically processes the URL without the fragment.

The mentioned exception concerns modern JavaScript applications (SPAs) that dynamically modify content based on the fragment. But even in this case, Google explicitly discourages this approach — it unnecessarily complicates crawling and creates indexing problems.

What's the difference with URL parameters?

Unlike query parameters (?param=value), which are transmitted to the server and can therefore generate different content, fragments remain invisible to the server. Google can crawl and index URLs with different parameters as separate pages.

Fragments, however, are purely client-side. Two identical URLs except for their fragments will be considered as a single page by Google.

  • Fragments (#): ignored by Googlebot, not transmitted to server, do not generate separate indexing
  • Parameters (?): transmitted to server, can create unique content, potentially indexed separately
  • Rare exception: Google may detect different JS content linked to a fragment, but this is discouraged
  • HTML anchors: fragments remain useful for UX (intra-page navigation) but with no direct SEO impact

SEO Expert opinion

Does this statement match real-world observations?

Absolutely. In 99% of cases, tests show that Google treats example.com/page and example.com/page#section as strictly identical. Search Console, server logs, and crawl tests confirm that Googlebot never transmits the fragment in its requests.

The exception mentioned by Google primarily concerns older SPAs using the #! (hashbang) pattern for routing. These architectures, popular around 2010-2015, are now obsolete. Google has discouraged them for years in favor of HTML5 History API.

What does "in very rare cases" really mean?

Google remains intentionally vague here. [To verify] but the most likely hypothesis: Googlebot could execute JavaScript that modifies the DOM based on the fragment detected on the client side. This would require JS to read window.location.hash and load different content.

Let's be honest — this approach is a nightmare to maintain and creates total dependence on JavaScript for indexing. Rendering delay, JS errors, blocked resources... so many friction points that can torpedo your indexing. Don't count on it.

When do fragments really cause problems?

The real trap? Sites that generate canonical links including the fragment. Example: an SPA that defines <link rel="canonical" href="https://example.com/page#tab2">. Google will ignore this fragment in the canonical tag, potentially creating an inconsistency.

Warning: If your site uses fragments for routing (legacy SPA type), verify that your canonical tags, hreflang, and Open Graph tags don't include them. Google will ignore them, but other crawlers (social networks) might treat them differently.

Another problematic case: analytics tools that track fragments as separate pages when Google indexes them as one. This completely distorts your landing page performance analysis.

Practical impact and recommendations

What must you absolutely avoid with URL fragments?

Never build your content architecture on fragments. If you have multiple sections of important content, create real distinct URLs. Example: instead of /products#shoes, use /products/shoes.

Also avoid generating internal links with fragments to unique content. If #important-section contains content you want to rank, pull it out into a dedicated page.

Do fragments still have any indirect SEO value?

Yes — for user experience, which indirectly influences SEO. An anchored menu that scrolls smoothly to sections improves time on page and reduces bounce rate. These behavioral signals matter.

Fragments in featured snippets can also be relevant. Google sometimes displays deep links with fragments to a specific section of your page in results. But Google chooses the anchor — you don't control this behavior.

How do you audit your site to detect fragment-related issues?

Run a complete crawl and filter for URLs containing #. Check if important content lives only behind these fragments. Also analyze your canonical tags — they should never include a fragment.

Then compare your Analytics data (which can track fragments) with Search Console (which doesn't see them). If you notice massive gaps between page views and impressions, that's a signal of an architecture problem.

  • Replace all fragment-based routing with real URLs (History API or distinct URLs)
  • Verify that canonical tags, hreflang, and og:url don't include any fragments
  • Audit internal links: remove fragments pointing to unique content
  • Keep fragments only for intra-page navigation (HTML anchors)
  • Test Googlebot rendering to confirm content is accessible without fragments
  • Configure Analytics to clearly distinguish intra-page navigation from real pages

URL fragments remain useful for UX but are invisible to SEO. Structure your content with real distinct URLs and reserve hashtags for intra-page navigation. If your current architecture relies on fragments, a redesign can be complex — it requires rethinking routing, managing redirects, and maintaining consistency between front-end and indexing. For in-depth diagnosis and migration without traffic loss, guidance from a specialized SEO agency experienced in JavaScript architectures can make the difference between a controlled project and an indexing disaster.

❓ Frequently Asked Questions

Google peut-il indexer deux URL identiques avec des fragments différents ?
Non. Google traite exemple.com/page#section1 et exemple.com/page#section2 comme une seule et même URL : exemple.com/page. Les fragments sont systématiquement ignorés lors du crawl.
Les ancres HTML (#) dans les liens internes ont-elles une valeur SEO ?
Indirectement, oui. Elles améliorent l'UX en facilitant la navigation intra-page, ce qui peut réduire le taux de rebond. Google peut aussi les utiliser pour créer des sitelinks vers des sections spécifiques dans les SERP.
Faut-il supprimer tous les fragments de mon site ?
Non, gardez-les pour la navigation intra-page. Supprimez-les uniquement s'ils servent à router du contenu unique que vous voulez indexer séparément — dans ce cas, créez de vraies URL distinctes.
Qu'est-ce que le pattern hashbang (#!) et dois-je l'utiliser ?
C'est une technique obsolète utilisée par les anciennes SPA pour rendre le contenu crawlable. Google la déconseille depuis des années. Utilisez plutôt l'History API HTML5 pour gérer le routing côté client.
Les fragments affectent-ils les balises canonical ou hreflang ?
Google ignore les fragments dans ces balises. Si vous incluez un fragment dans une URL canonical ou hreflang, Google le supprimera automatiquement, ce qui peut créer des incohérences avec votre intention initiale.
🏷 Related Topics
Domain Age & History Content AI & SEO Domain Name Local Search

🎥 From the same video 15

Other SEO insights extracted from this same Google Search Central video · published on 09/08/2023

🎥 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.