X
    Categories: GoogleSEO

Google: Types of Links That Googlebot Will & Will Not Follow

At Google I/O yesterday, Google clarified the types of links that Googlebot will follow.  While “a href” is the standard link type, they also covered various other link types and whether Googlebot would follow them or not.

In particular, they clarify some uses of the JavaScript onclick attribute within links and which ones Googlebot will process as links, and which ones Googlebot will not.  There is a type of onclick link that Googlebot will process, and they also give examples of the ones it will not.

Using JavaScript in links has proven problematic for SEOs, as some sites have valid reasons – such as for design or for tracking reasons – to use onclick when creating links on a site.  But with Googlebot not processing and/or following all types of them, it can lead to crawl issues, especially if a site with some of the problematic links does not have a great sitemap to go along with it.

Here is the slide from the session:

Here are the full comments:

So now let’s just talk about these links quickly, because honestly, that’s some of the most important parts of the web.

How do search crawlers, like Google, find links?  Well, I can’t speak for all search crawlers, but I can say at Google, we only analyze one thing – anchor tags with href attributes.  That’s it.

<a href=”/good-link”>Will be crawled</a>

For example, this span here

<span >

that I’ve just added, won’t get crawled because it’s not an anchor.

And this additional span I’ve added

<a >

even though it’s an anchor, it doesn’t have an href attribute.

But if you are using JavaScript such as with the history API that I mentioned earlier, to navigate the page purely on the client and fetch new content dynamically, you can do that, so long as you use the anchor tags with the href attributes like in this last example, because most search crawlers, including Google, will not simulate a simulation of a page to find links, only the anchor tags will be followed for linking.

<a href=”/good-link” >

It does clarify a bit better the type of links Google will process – and not process – where JavaScript is being used.

The following two tabs change content below.

Jennifer Slegg

Founder & Editor at The SEM Post
Jennifer Slegg is a longtime speaker and expert in search engine marketing, working in the industry for almost 20 years. When she isn't sitting at her desk writing and working, she can be found grabbing a latte at her local Starbucks or planning her next trip to Disneyland. She regularly speaks at Pubcon, SMX, State of Search, Brighton SEO and more, and has been presenting at conferences for over a decade.
Jennifer Slegg :Jennifer Slegg is a longtime speaker and expert in search engine marketing, working in the industry for almost 20 years. When she isn't sitting at her desk writing and working, she can be found grabbing a latte at her local Starbucks or planning her next trip to Disneyland. She regularly speaks at Pubcon, SMX, State of Search, Brighton SEO and more, and has been presenting at conferences for over a decade.