AMP Test - Search Console Help (2024)

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.

Open the AMP test

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.

If the page is not a valid AMP page, it might not appear in Google Search results with all possible features. For example, it might not appear with an image, or in a carousel.

AMP errors

In addition to standard AMP errors, the report can expose the following additional issues (errors or warnings).

Google-specific AMP issues

Issue Description
Content mismatch: 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 on Google Search, and may also prevent your Discover cards from appearing with large images (leading to decreased website traffic and user engagement). To fix, use a larger image according to our guidelines.
AMP page 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. Learn about fixing 404 pages.
Server error (5XX) Unspecified 5XX server error when requesting the AMP page. Learn more about server errors.
Blocked by robots.txt The requested AMP URL was blocked by a robots.txt rule. If this is not what you want, test your robots.txt file for the blocking rule, and then modify or remove the rule (or ask your web developer to do it for you).
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. Learn how a non-AMP page should reference an AMP page.
Referenced AMP URL is self-canonical AMP The canonical page points toa stand-alone AMP. You cannot reference a stand-alone AMP as the AMP version of a page. Learn how to reference an AMP from a non-AMP page.
URL marked 'noindex' AMP is blocked by a 'noindex' directive. Google cannot index a page that is blocked by noindex; either remove the noindex directive, or remove the reference to the blocked page.
'unavailable_after' date for this page has expired AMP page has an "unavailable_after" meta tag or directive that has already passed, indicating that it should no longer be served. You should either update the tag to a future date, or remove the tag.
Canonical points to invalid URL A canonical page references an AMP version using an invalidly formatted URL.Learn how to properly reference an AMP version.
amp-story canonical error

A page incorrectly references an amp-story pageas its AMP version. This is not allowed because an amp-story page is, by definition, self-canonical: itmust point to itself with a <rel="canonical"> tag, and cannot serve as an AMP version of another page.

Module script declared without nomodule alternative (or the reverse) You are using either a<script type="module"> tag without a matching<script nomodule async> tag, or the reverse. These tags must be used in matching pairs to enable proper handling by browsers that do or don't support module scripts.
Missing URL in HTML tag The specified HTML tag requires an attribute with a valid, non-zero-length URL, but the URL is an empty string. Provide a valid URL for the highlighted attribute.
The attribute is missing or incorrect, but required by the attribute 'on' The specified attribute is required but is incorrect or missing. This attribute is required because you specified an "on" attribute in the same tag.
<svg> child tag found outside of an <svg> block. You specified a tag outside an <svg> block that must be nested within an <svg> block.
The page is loading multiple versions of the same extension script The page is loading multiple versions of the same AMP extension. To fix, remove one version of the script.

Connectivity errors

These connectivity errors can also occur during a live AMP test:

  • DNS server unresponsive:Often this is a transient problem thatresolves itself in a few minutes.
  • DNS error: Host unknown: Your DNS server did not resolve your URL. This might be a transient problem that resolves itself in a few minutes.
  • DNS error: Private IP provided: YourDNS returned an IP that is in a special/private excluded range, such as RFC 1918 private IP (for example,10.0.0.1)
  • Server connection error: Server was unreachable, refused connection or failed to connect. Read more.
  • Server invalid response: Server does not support requested protocolthe response or headers were truncated;or the response could not be parsed (for example, if the response data was incorrectly compressed).Read more.
  • Invalid server SSL certificate: Your site's SSL certificate is invalid. Google won't test an HTTPS URL on the site unless the certificate is valid.
  • Robots.txt unreachable: Google won't crawl a website if the robots.txt file is present but not reachable. You can check your robots.txt availability in the Crawl Stats report.
  • Hostload exceeded: Your site seems to be at maximum capacity for Google crawling or inspection requests. Google can't run tests until your traffic load (as estimated by Google) drops.

Next steps

If you are a verified site owner in Search Console, explore combined statistics for all your site's AMP pages using the AMP Status report.

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.

Was this helpful?

How can we improve it?

AMP Test - Search Console Help (1)

New to Search Console?

Never used Search Console before? Start here, whether you're a complete beginner, an SEO expert, or a website developer.

AMP Test - Search Console Help (2024)
Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 5863

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.