Doing SEO for ecommerce? Our upcoming webinar is just for you! Register now.

Dealing with Links issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free
Insight This Hint is neither an issue nor an opportunity, and is brought to your attention as it may provide a useful avenue of investigation.

Has link with a URL in onclick attribute

This means that the URL in question contains at least one outgoing anchor link with a URL in an onclick attribute.

Why is this important?

This is a type of JavaScript link - the onclick attribute defines a JavaScript action when the 'onclick' event for the link is triggered (i.e. when a user clicks the link) - and there is a URL present itself in the onclick attribute.

This means that the link destination is JavaScript dependent, which search engines are not able to follow.

Google clearly state in their documentation that onclick links are not crawlable:

Onclick links

What does the Hint check?

The Hint will trigger for any internal URL that has at least one outgoing link, where the link includes a URL in an onclick attribute.

Examples that trigger this Hint

An anchor with an onclick attribute, with a URL defined in the onlick attribute

<a href="javascript:void(0);" onclick="window.location.href='https://example.com'">onclick link!</a>

Why is this Hint marked 'Insight'?

This Hint is an 'Insight', which means there isn't necessarily any action that needs to be taken - the Hint is intended to alert your attention to something, rather than flagging up an issue that needs fixing.

The reason for this is that it may be intentional that certain links are not crawlable - for instance if they are only designed with user interaction in mind (e.g. 'add to basket'). Since Sitebulb cannot divine the intention of the link, it is not clear whether the link is supposed to be crawlable or not.

How do you get more data from Sitebulb?

From the URL List, click the blue Hint Details button, which will bring up a slide-across window with specific details about the Hint for each URL.

Link in onclick

Further Reading

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.