Pages with Multiple Hreflang Langs In
All pages with multiple hreflang langs in.
Priority: Medium
Impact: Negative
What issues it may cause
The hreflang information can be used by search engines to show the most relevant page to users in search results.
How do you fix it
The hreflang target page should be reviewed to determine if all the languages specified in the hreflangs are appropriate, and any hreflang links with inappropriate languages should be updated.
What is the positive impact
Search engines may detect the inconsistency and ignore the hreflang links, or the page may be incorrectly shown to users in search results.
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
- Variables
- cURL
query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
pageTitle
url
description
foundAtUrl
deeprank
level
hreflangLanguagesInCount
hreflangLanguagesIn
identifiedLanguage
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"pages_with_multiple_hreflang_langs_in"}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) { getCrawl(id: $crawlId) { reportsByCode( input: { reportTypeCodes: Basic reportTemplateCodes: [$reportTemplateCode] } ) { rows { nodes { ... on CrawlUrls { pageTitle url description foundAtUrl deeprank level hreflangLanguagesInCount hreflangLanguagesIn identifiedLanguage } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"pages_with_multiple_hreflang_langs_in"}}' https://api.lumar.io/graphql