Does Google Index URLs with Hashtags?
Does Google ignore URLs that contain hashtags? We conducted an experiment to find out. The reason for this experiment stemmed from the question, does Google really ignore links that have hashtags? Does it even matter when we include hashtags in a URL? Or is including a hashtag just a way to make the article/page more scannable and attractive?
Google Doesn’t Normally Index Hashtags in a URL
Google doesn’t normally index hashtags in the URL. This has recently been proven by Google’s John Mueller, who responded to a question on Google Search Central’s #AskGooglebot.
What are Hashtags in URLs?
A hashtag symbol (#) in a Uniform Resource Locator (URL) is called a fragment identifier. A fragment identifier sets the browser’s scroll position to a predefined location on the web page.
How Do Hashtags Affect URLs?
The part of a URL that comes after the first hash symbol (#) is known as the fragment identifier, anchor tag or anchor element. By default, this information is not sent to the remote web server. So, for instance, both of these links would be considered requests for the same document by the remote web server:
Search engines, like Google, will consider the search results for both fragment identifiers to refer to a single search result – https://getdigitalresults.com/search-engine-optimization/.
Thus, it’s important not to use fragments as a way of showing Google that you want two different pages to be crawled and indexed separately. Instead, if you want to show Google that you have two distinct pages, use two URLs without fragments.
What Google Says About Hashtags in URLs
Besides the very basic information Google has provided for hashtags in URLs, John Mueller’s recent video is the first time they confirm what we found with our experiment. In most use cases, Google does not support the indexing of URLs with hashtags in them. Our recommendation is that if you want Google to find a piece of content on your site, the best option is an SEO-optimized piece of content with solid keyword influences for the URL and content.
We usually ignore everything after a # when it comes to links and discovering URLs.— 👓 johnmu? People are not cats 👓 (@JohnMu) February 11, 2022
How to Make Your Links Easy for the Search Engines
- Use a Consistent URL Structure – Many newer webmasters fail to follow a consistent URL structure setup. This usually means they did not do their due diligence when determining what and how their URL structures would look like.
- Include Keywords in Your URLs – One of the easiest ways to let search engines like Google know what your page is about is to include keywords you want the page to rank for in your URL structure.
- Keep URLs Shorter Rather Than Longer – We try to keep our URLs shorter than 100 characters, but even Google has said that shorter is usually better. One way to do this is to remove words from the URL that may not be as important as others. We refer to these as stop words.
- Put Similar Content in the Same Folders – We refer to this as Siloing Content, and doing this helps inform Google and other search engines as to what type of information you are an authority on. Google uses this information to promote or demote your content in the SERPs.
Should You Use Hashtags or Not?
So We will say this depends on what you are attempting to do.
If you want Google to find and index specific content, which may exist on a page that is really about something else, we recommend creating a new page for the content and linking to it from the original page.
If the end goal is to be making links to assist a user in finding specific content on a longer form piece, we say go for it, and try to make sure you do not overdo adding the anchors.
All in all, having hashtags in URLs is not bad, but it may not be giving you the desired SEO benefit you think it is.
Ready to Grow Your Search Engine Results?
Let Digital Results assist you in your SEO strategy and help
deliver the search engine results you need.