Invalid AMP Pages
All pages which were AMP, but were not valid in the AMP validator.
Priority: Low
Impact: Negative
What issues it may cause
Invalid AMP pages can't be indexed as an AMP alternative and won't be shown in search engines results pages. Users are likely to see the non-AMP versions which may be slower.
The speed of pages measured by search engines will be the versions which are shown in search results, so the page may be considered slower which could impact rankings, traffic and conversions.
How do you fix it
The pages should be run through the Google AMP validator to identify the specific validation issues which can then be resolved.
What is the positive impact
The AMP pages can appear in mobile search results, resulting in users experiencing the faster pages.
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
mobileRelAmphtmlUrl
mobileRelAlternateUrl
foundAtUrl
deeprank
level
amphtml
amphtmlValid
amphtmlReciprocate
foundInWebCrawl
foundInSitemap
foundInGoogleSearchConsole
foundInGoogleAnalytics
foundInBacklinks
foundInLogSummary
foundInList
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"invalid_amp_pages"}
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 mobileRelAmphtmlUrl mobileRelAlternateUrl foundAtUrl deeprank level amphtml amphtmlValid amphtmlReciprocate foundInWebCrawl foundInSitemap foundInGoogleSearchConsole foundInGoogleAnalytics foundInBacklinks foundInLogSummary foundInList } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"invalid_amp_pages"}}' https://api.lumar.io/graphql