Non-Rel-Alted AMP Pages
AMP pages which do not have a rel=amphtml link from another page
Priority: Medium
Impact: Negative
What issues it may cause
Accelerated Mobile Pages without an amphtml alternate link from a desktop page will not be served as an AMP alternate in mobile search results and may be seen as a duplicate of the desktop page.
The AMP pages may not be discovered by search engines as AMP pages are not typically linked through internal linking or included in Sitemaps.
How do you fix it
If the Accelerated Mobile Page is the alternate of a desktop page, an amphtml alternate link should be added to the desktop page pointing to the AMP page.
What is the positive impact
The AMP pages can appear in mobile search results as an alternate of the desktop page which may provide a better user experience and have a better page speed, potentially resulting in improved rankings and an increase in traffic and conversions.
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
separateDesktop
separateMobile
amphtml
canonicalUrl
desktopUrl
mobileRelAlternateUrl
mobileReciprocate
mobileRelAmphtmlUrl
amphtmlReciprocate
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"amphtml_non_rel_alted"}
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 separateDesktop separateMobile amphtml canonicalUrl desktopUrl mobileRelAlternateUrl mobileReciprocate mobileRelAmphtmlUrl amphtmlReciprocate foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"amphtml_non_rel_alted"}}' https://api.lumar.io/graphql