Canonical to Non-200
Pages that canonicalize to URLs which do not return a 200 status code
Priority: Medium
Impact: Negative
What issues it may causeโ
Google will typically ignore the canonical potentially resulting in an unwanted page in search results. If there are lots of these low value pages in search engine results pages it could devalue your site quality, impacting ranking and bounce rates.
How do you fix itโ
Update canonical links to point to URLs which respond with a 200 status.
What is the positive impactโ
Search engines will be able to process the canonical signal correctly, potentially reducing indexing issues.
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 CrawlLinks {
urlFrom
urlFromTitle
urlTo
urlToTitle
urlFromDeeprank
urlFromStatusCode
urlToDeeprank
urlToStatusCode
linkType
internal
attrRel
attrType
hreflang
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"canonical_to_non_200"}
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 CrawlLinks { urlFrom urlFromTitle urlTo urlToTitle urlFromDeeprank urlFromStatusCode urlToDeeprank urlToStatusCode linkType internal attrRel attrType hreflang } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"canonical_to_non_200"}}' https://api.lumar.io/graphql