Validate AMP content for Google Search

After you've created AMP content, here are some ways to validate your AMP content for Google Search:

Fix common AMP errors

If your AMP page doesn't appear in Google Search, try the following steps:

  1. Make your page discoverable by linking your pages.
    • Did you add rel="amphtml" to the canonical page?
    • Did you add rel="amphtml" to other non-AMP pages (for example, mobile)?
    • Did you add rel="canonical" to the AMP page?
  2. Follow the Google Search guidelines for AMP pages.
  3. Make your AMP content accessible to Googlebot:
    • Edit your site's robots.txt to allow Googlebot to crawl the canonical page, AMP page, and links in the structured data (if applicable).
    • Remove all robots meta tags and X-Robots-Tag HTTP headers from your canonical and AMP content. For more information, see Robots meta tag and X-Robots-Tag HTTP header specifications.
  4. Ensure that your structured data follows the structured data guidelines for your page and feature type. For more information about structured data requirements for AMP, see About AMP on Google Search.

If your AMP page still isn't appearing in Google Search after completing the steps, here are some additional reasons:

  • Certain Google Search features might not be available in your country.
  • Your site might not be indexed yet. For more information about crawling and indexing, see the Crawling and indexing FAQ.

Resources

To debug validation and cache errors, see the following ampproject.org resources: