prsona
Get started
Medium: fix this month

Links Google cannot crawl: menus and buttons that are dead ends for crawlers

Last reviewed

Visitors can click them, but crawlers find no address to follow.

An uncrawlable link is something that works as a link for visitors but is not built as one in the code: a javascript: address, a button that only runs a click script, or a styled span with no real address. Google says it can follow links written as an <a> element with an href, the standard link tag holding a real page address. Pages reached only through the other kinds may never be found by Google or AI crawlers. The fix is to rebuild them as ordinary links.

Why an uncrawlable link costs you customers

Crawlers discover your site by moving from link to link. If the only route to a location page, your financing page or a service you added last spring is a button that runs a script, a crawler reaching that button stops there. The page can go unvisited and unlisted even though customers use it every week. Links also tell search engines which pages you treat as important and, through the words in the link, what those pages are about, so a menu built from script buttons passes on none of that. AI crawlers need a real address to follow in the same way, so a page cut off from Google is usually cut off from them too.

What usually causes an uncrawlable link

  • A page builder button set to run an action or open a popup instead of linking to a page
  • A theme menu or mega menu that opens pages with a click script rather than real links
  • Older code using href="javascript:..." to open a page or a new window
  • Clickable cards or images wrapped in a div or span with a click handler and no address
  • A single-page app whose router uses its own link elements that never output an href
  • Tracking code that replaced a link's address instead of sitting alongside it

How to check for an uncrawlable link yourself

  1. Right-click a menu item or button that leads to another page and choose "Copy link address". If that option is missing, or the copied text starts with javascript:, it is not a real link.
  2. Hover over the same item and glance at the lower left of the screen, where the browser previews the address. A real link shows the page address; a script link shows javascript: or nothing.
  3. Right-click, pick "View page source", then look through it for javascript: and onclick. An onclick sitting beside a real href is fine; one on an element with no href is the problem.
  4. Put the address of a page you suspect is only reachable that way into URL Inspection in Search Console. A report that the address is not on Google, with no referring page listed, suggests crawlers never found it.

How to fix an uncrawlable link

  1. Have your web person rewrite each script link as a normal <a href="/page-address"> link. Tracking or animation can stay attached, because Google accepts a link that has both a real href and a click handler.
  2. In WordPress page builders such as Elementor, Divi or the block editor, open the button or icon box and type the page address into its Link field instead of choosing an action or popup trigger.
  3. On Wix, select the button, click the link icon and point it at a page on your site rather than a lightbox or custom code.
  4. On Squarespace, set the button or image block's Clickthrough URL to the page it should open.
  5. For a custom single-page app, the router needs to output real <a href> elements. Most frameworks can, so raise it with your developer.
  6. List every important page in your sitemap as well, so crawlers have a second way in. A sitemap helps discovery but is only a hint, and it does not replace proper links.

How Prsona catches an uncrawlable link

Prsona looks at every link it finds during a scan and reports those whose address is a javascript: instruction that opens another page, naming each page that carries them.

Prsona looks for an uncrawlable link as part of an AI search and SEO audit and technical SEO monitoring.

See which links on your site give crawlers no address to follow.

Questions about an uncrawlable link

Do buttons count as links for search engines?

Only when they are built as links. A button whose code is an <a> element with a real href is followed like any text link, however it is styled. A button that only runs a script when clicked gives a crawler nowhere to go.

Is this the same problem as content that only loads with JavaScript?

No. That problem is about the words on a page arriving by script, so crawlers find an empty page. This one can happen on a page whose text is all there: the words are readable, but the routes to other pages are not. A site can have either problem, or both.

Sources