Pages with Broken
All pages with tags found in the section (such as a canonical, robots directive, etc), or tags found in the (such as images, iframes, etc).
Priority: Low
Impact: Negative
What issues it may cause
Body specific HTML tags (such as images, divs, etc) can force the block to close early and cause important link and meta tags (such as canonical, hreflang or meta description) to be be pushed into the body where they will be ignored by search engines.
How do you fix it
Check the pages and ensure that no head specific tags are included in the body block.
They can be located on the source page using the following CSS selector in Chrome Dev Tools > Elements search:
body link[rel='canonical' i], body meta[name='description' i], body meta[name='robots' i], body meta[name='googlebot'
i], body meta[name='viewport' i], body link[rel='alternate' i]
What is the positive impact
Important meta tags will be seen and processed by search engines as intended.
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 GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlUrls(after: $after, reportType: Basic) {
nodes {
pageTitle
url
description
foundAtUrl
deeprank
level
headTagsInBodyCount
bodyTagsInHeadCount
foundInWebCrawl
foundInSitemap
foundInGoogleSearchConsole
foundInGoogleAnalytics
foundInBacklinks
foundInLogSummary
foundInList
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"broken_head_warning"}
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 GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlUrls(after: $after, reportType: Basic) { nodes { pageTitle url description foundAtUrl deeprank level headTagsInBodyCount bodyTagsInHeadCount foundInWebCrawl foundInSitemap foundInGoogleSearchConsole foundInGoogleAnalytics foundInBacklinks foundInLogSummary foundInList } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"broken_head_warning"}}' https://api.lumar.io/graphql