Skip to main content

Unsupported Anchor Hreflangs

All anchor links which include hreflang elements.

Priority: Low

Impact: Negative

What issues it may causeโ€‹

Hreflang attributes inside normal anchor tags are not supported by search engines so they will be ignored. They need to be inside <link> tags in the HTML head, response headers or in Sitemap links.

How do you fix itโ€‹

The hreflang attribute to specify a language or/and locale versions of your pages should be implemented as link tags in the HTML, HTTP Headers or in Sitemaps.

What is the positive impactโ€‹

Adding valid hreflang attributes on pages with a language alternative can help for the following reasons:

  • It increases the discoverability of the alternative language or/and locale versions of your pages.
  • It removes potential duplication of the alternative versions.
  • It ensures that the correct pages are ranking for the right users e.g. pages with the appropriate language and currency.

How to fetch the data for this report templateโ€‹

You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:

query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUniqueLinks {
anchorText
urlTo
urlToTitle
primaryUrlFrom
primaryUrlFromTitle
instanceCount
primaryUrlFromDeeprank
urlToDeeprank
hreflang
linkType
nofollow
isRedirect
}
}
}
}
}
}

Try in explorer