Menu
Menu Sheet Overlay
Search
Search Sheet

Indexing AMP

    Most traffic to AMP pages comes from Google Search results. To be included in Google Search results, AMP pages must be indexed.

    About indexing #

    In order to become indexed by Google, the canonical (original, non-AMP) site needs to be updated so it includes information about where to find the AMP version. Google describes in more detail how indexing works for AMP pages in a guide called Make your page discoverable.

    In the case of Mobify AMP pages, we need the canonical site to point to the AMP pages for the supported templates, usually PDPs (Product Detail Pages) and PLPs (Product Listing Pages).

    The recommended approach #

    The recommended way to prepare for indexing is to ensure the canonical server response contains the appropriate <link> tag mentioned in the AMP indexing documention.

    Support in the Mobify Platform #

    Your generated project contains a simplified router in /web/app/ampUrls.js. It contains a list of regular expressions used to decide whether a URL path is a supported AMP template or not. There is also /web/app/appUrls.test.js available to test your regular expressions against a variety of paths.

    Because loader.js is loaded for all user agents, when the canonical site is crawled, it will know which pages have AMP versions and where to find them. This is a fallback method and has not been reliable when used alone. Please refer to the recommended approach.

    AMP pages also need to include information about how to find the canonical site; this is done automatically in the Mobify AMP SDK.

    Tooling #

    To check the status of AMP indexing for a site, use Google Webmaster Tools.