When optimizing your website, one question might come up – does hashtags in the URLs affect SEO?
To explain, a hashtag (#), in a URL is referred to as a fragment. URL fragments have typically been used to automatically set the browser\’s scroll position to a predefined location in the web page. Basically, if the URL refers to a document, the fragment refers to a specific part of that document.
But what does Google do when there’s a hashtag in a URL? Does it get ignored?
In this Google Search Central video, we’ll find out if Googlebot ignores what’s behind the hashtag when crawling and indexing the web.
John Mueller shares how pages with JavaScript sometimes handles these differently.