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 GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlUrls(after: $after, reportType: Basic) {
nodes {
pageTitle
url
description
mobileRelAmphtmlUrl
mobileRelAlternateUrl
foundAtUrl
deeprank
level
amphtml
amphtmlValid
amphtmlReciprocate
foundInWebCrawl
foundInSitemap
foundInGoogleSearchConsole
foundInGoogleAnalytics
foundInBacklinks
foundInLogSummary
foundInList
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"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 GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlUrls(after: $after, reportType: Basic) { nodes { pageTitle url description mobileRelAmphtmlUrl mobileRelAlternateUrl foundAtUrl deeprank level amphtml amphtmlValid amphtmlReciprocate foundInWebCrawl foundInSitemap foundInGoogleSearchConsole foundInGoogleAnalytics foundInBacklinks foundInLogSummary foundInList } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"invalid_amp_pages"}}' https://api.lumar.io/graphql