X
    Categories: GoogleSEO

Google: How Googlebot Processes JavaScript Links on a Site

Site developers are often creative when it comes to how they implement linking with various web technologies.  But not all links are created equal in the eyes of Googlebot.

John Mueller from Google was asked if Googlebot would ignore JavaScript links placed in a “<div href> + JavaScript format.  He confirmed that Google will not process these as links and they will not pass PageRank nor other linking signals such as anchor text.

Since Google uses anchor text for landing page context for ranking and uses internal links to help determine most important pages on a site, it can be detrimental for sites to be using all internal links that Google is not able to use for ranking.  And it could hurt the site in the rankings, both for context and hierarchy of importance on pages within the site.

There are uses for using JavaScript links for SEO reasons though.  Using JavaScript for links is one way that affiliate sites mask their affiliate links so Google doesn’t follow them or pass PageRank, although Google can still use unlinked URLs for discovery.  And sometimes site owners use it for crawl budget purposes, although most would find it easier and with less potential for errors to use something like nofollow instead.

Google has also confirmed previously that unlinked URLs do not pass PageRank.  This is the same kind of situation where Google is seeing a link, but as it is not in a correct link format, Google ignores the link for their normal processing of a page’s links.

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.