Enhancing Your AMP Content

To make your content shine in Google Search results and provide a lightning-fast user experience, leverage the power of AMP (Accelerated Mobile Pages). This document guides you through enhancing your AMP content, covering everything from basic page creation to advanced optimization techniques.

1. Create a Basic AMP Page

Before diving into enhancements, let's establish a solid foundation with a basic AMP page.

1.1 Follow the Guidelines:

1.2 Establish Canonical Relationship:

  • Every AMP page needs a corresponding canonical page, which can be a non-AMP version or the AMP page itself. This is crucial for Google to understand the relationship between your pages.

  • Link your AMP page to its canonical counterpart using the <link rel="canonical"> tag within the <head> section.

Example:

<!-- AMP Page -->
<!doctype html>
<html amp lang="en">
<head>
  <meta charset="utf-8">
  <link rel="canonical" href="https://www.example.com/blog/my-awesome-article">
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  <link rel="stylesheet" href="https://cdn.ampproject.org/v0.css">
  <title>My Awesome Article</title>
</head>
<body>
  <h1>My Awesome Article</h1>
  <p>Content of the article goes here...</p>
  <script async src="https://cdn.ampproject.org/v0.js"></script>
</html>
<!-- Canonical Page -->
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="amphtml" href="https://www.example.com/blog/my-awesome-article/amp">
  <title>My Awesome Article</title>
</head>
<body>
  <h1>My Awesome Article</h1>
  <p>Content of the article goes here...</p>
</body>
</html>

1.3 Maintain Content Parity:

  • As much as possible, ensure users enjoy the same content and functionality on both AMP and canonical pages.

1.4 Implement Best Practices:

  • Robots.txt: Verify your robots.txt file doesn't block access to your AMP pages.

  • Meta Robots: Utilize robots meta tags appropriately to control indexing and snippets. For instance:

    <meta name="robots" content="index,follow">
  • Data-nosnippet: Prevent specific sections from appearing in search snippets:

    <p data-nosnippet>This content won't show in snippets.</p> 
  • X-Robots-Tag: For advanced control over indexing and serving, leverage the X-Robots-Tag HTTP header.

  • Hreflang: Implement hreflang tags correctly for internationalization and to indicate language variations of your AMP content. Refer to Internationalization for AMP-specific examples.

2. Create an AMP Page Using a CMS

Many Content Management Systems (CMS) offer streamlined AMP integration.

2.1 Leverage Plugins/Extensions:

  • Popular CMS platforms like WordPress, Drupal, and Joomla have dedicated plugins or extensions designed for effortless AMP page generation. Install and configure these plugins to automate the process.

2.2 Custom CMS Implementation (for Developers):

  • URL Structure: Define how AMP HTML files integrate within your site's existing URL structure. Common approaches include:

    • https://www.example.com/myarticle/amp

    • https://www.example.com/myarticle.amp.html

  • Structured Data Template: Develop a template for consistent structured data markup based on your content type (e.g., articles, recipes, videos).

    Example (JSON-LD for an Article):

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Article",
      "headline": "My Awesome Article",
      "author": {
        "@type": "Person",
        "name": "John Doe"
      },
      "datePublished": "2023-10-26T12:00:00+01:00",
      "image": "https://www.example.com/blog/my-awesome-article/image.jpg",
      "description": "A captivating article about..." 
    }
    </script>

3. Optimize for Rich Results

Elevate your AMP pages in search results by implementing structured data to unlock visually appealing rich results.

3.1 Implement and Validate Structured Data:

  • Integrate structured data markup following Google's guidelines for your specific content type. AMP Project metadata examples provide useful templates.

  • Use the Rich Results Test to ensure your structured data is correctly implemented and eligible for rich results.

3.2 Target Relevant Rich Results:

  • Research and aim for rich result types that align with your content. For example:

    • Article: Enhance visibility in Top stories carousels and Google News.

    • Recipe: Showcase your recipes with attractive visuals and key details directly in search results.

    • Video: Increase discoverability and engagement with rich video snippets.

4. Monitor and Improve Your Pages

Regular monitoring ensures your AMP pages remain in top shape.

4.1 Leverage Search Console Reports:

  • AMP status report: Provides insights into site-wide AMP implementation issues.

  • Rich result status reports: Identify structured data problems and opportunities for enhancement.

4.2 Update and Manage Your AMP Content:

5. Practice with Codelabs

Hone your AMP development skills with these hands-on codelabs:

Last updated