Accelerated mobile pages (AMP) is a standard for creating fast-loading pages that look good on mobile devices. Having a mobile-friendly website is a critical part of your online presence. In many countries, smartphone traffic now exceeds desktop traffic. You can use the AMP Test to check the validity of an AMP page, and to verify that it has the proper configuration to appear in Google Search results. Note: If you want to confirm whether your AMP pages are indexed correctly, we recommend using the URL inspection tool instead of the AMP Test tool.
Run the test
The AMP test is easy to run; simply type in the full URL of the web page that you want to test. Any redirects implemented by the page will be followed by the test.
Review the results
If there are errors, expand the individual error and click the line number to open the code explorer pane for that error.
If the page has structured data, click the structured data link to open the Structured Data Testing Tool to test and explore the structured data.
In addition to standard AMP errors, the report can expose the following additional error types.
There is a difference in content between the AMP version and its canonical web page.
The content of the AMP version and its canonical web page should be essentially the same. The text need not be identical, but the topic should be the same, and users should be able to accomplish the same tasks on both the AMP and the canonical page.
A mismatch can also occur when a robots.txt file blocks significant resources on one or the other. Inspect the indexed version of the page using the URL Inspection tool to see whether either page has blocked resources.
|Missing embedded video||The canonical web page has an embedded video that is missing in the AMP version. It is usually best to include all the same important content resources in your AMP version as in the canonical web page. Note that the video is detected by URL; if you have two different URLs pointing to the same video, you will see this warning.|
|Image size smaller than recommended size||The structured data in the AMP refers to an image that is smaller than our recommended size. This may prevent the page from appearing with all AMP-related features in Search results. To fix, use a larger image according to our guidelines.|
|Domain mismatch||The AMP page is hosted on a different domain than its canonical version. This can be confusing to mobile searchers who see one URL domain in search results and a different one when they open the page in the AMP reader. (Does not affect page indexing or ranking.)|
|URL not found (404)||The AMP URL requested could not be found.|
|Server error (5XX)||Unspecified 5XX server error when requesting the AMP page. Learn more.|
|Blocked by robots.txt||The requested AMP URL was blocked by a robots.txt rule.|
|Crawl issue||Unspecified crawling error for the AMP page. Use the URL Inspection tool on your AMP URL to troubleshoot the problem.|
|Referenced AMP URL is not an AMP||A canonical page references an AMP that is not, in fact, an AMP page.|
|Referenced AMP URL is a self-canonical AMP||The canonical page points to a stand-alone AMP.|
|URL marked 'noindex'||AMP is blocked by a 'noindex' directive.|
|'unavailable_after' date for this URL has expired||AMP page has an "unavailable_after" meta tag or directive that has already passed, indicating that it should no longer be served.|
|Canonical points to invalid URL||A canonical page references an AMP version by a URL with an invalid format. More information about how to properly reference an AMP version.|
More AMP resources
Here are some more resources about AMP:
- www.ampproject.org - Open-source project homepage: contains full AMP documentation, as well as the open-source AMP code.
- AMP on Google Search (for developers) - Additional AMP information specific to Google Search. Includes a few additional requirements to enable your AMP pages to appear in Google Search with all possible search features.