{"id":20563,"date":"2021-07-06T17:46:19","date_gmt":"2021-07-06T14:46:19","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=20563"},"modified":"2021-11-18T05:37:36","modified_gmt":"2021-11-18T10:37:36","slug":"how-to-test-magento-2-amp-page","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation","title":{"rendered":"How to Validate Magento 2 AMP Pages"},"content":{"rendered":"\n<p>In this article, you will learn how to test and validate your <a href=\"\/magento-amp\">Magento 2 AMP<\/a> pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.<\/p>\n\n\n\n<h2 id=\"amp-validator-google-chrome-extension\">Google Chrome Extension (Recommended)<\/h2>\n\n\n\n<p>We recommend using Chrome extension for validating your AMP pages, as it is the easiest and fastest way. It helps quickly find the AMP version of the page and check if it is valid. <\/p>\n\n\n\n<p>First, search for the <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/amp-validator\/nmoffdblmcmgeicmolmhobpoocbbmknc?hl=en\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">AMP Validator Chrome extension<\/a> in Chrome Web Store and install it.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Go to your website Homepage and swith to AMP mode by clicking the blue icon of the AMP Validator extension.<\/li><li>Browse your website in AMP mode and see whether the page is valid or not. If the page is not valid, the extension icon turns red, otherwise, it remains green. <\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/4_amp_testing_magento_2_validate.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/4_amp_testing_magento_2_validate.jpg\" alt=\"4 amp testing magento 2 validate.jpg\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\"><strong>Important Information:<\/strong><\/p>\n\n\n\n<p>Sometimes, the AMP Validator extension cannot access your website &#8211; it can be blocked by CDN or HTTP authentication. In this case, you should use validators and manually provide the HTML content of your AMP pages. Check how to use these validators in the next sections.<\/p>\n<\/div><\/div>\n\n\n\n<h3 id=\"online-validator-1\">Online Validator #1<\/h3>\n\n\n\n<p>In order to validate your AMP pages at the AMP validator made by Google <a href=\"https:\/\/search.google.com\/search-console\/amp\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">search.google.com\/search-console\/amp<\/a>, follow the instructions below. <\/p>\n\n\n\n<p>The striking feature of this validator is that it highlights all the parts of the code that cause errors.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Enter your AMP page URL you want to validate (including <a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/configuration#amp-url-preview\">AMP page identifier<\/a>).<\/li><li>This block shows whether your AMP page is valid.<\/li><li>This block displays the description of your AMP page data.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/2_amp_testing_magento_2_validate.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/2_amp_testing_magento_2_validate.jpg\" alt=\"2 amp testing magento 2 validate.jpg\"\/><\/a><\/figure>\n\n\n\n<h3 id=\"online-validator-2\">Online Validator #2<\/h3>\n\n\n\n<p>In order to validate your AMP pages with the Official AMP Validator <a href=\"https:\/\/validator.ampproject.org\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">validator.ampproject.org<\/a>, follow the instructions below.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Enter your AMP page URL you want to validate (including <a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/configuration#amp-url-preview\">AMP page identifier<\/a>). Check the validation status: it can be &#8220;PASS&#8221; or &#8220;FAIL&#8221;.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/3_amp_testing_magento_2_validate.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/3_amp_testing_magento_2_validate.jpg\" alt=\"3 amp testing magento 2 validate.jpg\"\/><\/a><\/figure>\n\n\n\n<h3 id=\"developer-tool-amp-validator\">Developer Tool AMP Validator<\/h3>\n\n\n\n<p>In order to validate your AMP pages using the Developer Tools in your browser (hotkey F12), follow the instructions below.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Enter your AMP page URL you want to validate (including <a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/configuration#amp-url-preview\">AMP page identifier<\/a>).<\/li><li>Add hash parameter <code>#development=1<\/code> to the URL.<\/li><li>Press F12 hotkey and go to the <strong>Console<\/strong> tab.<\/li><li>Reload your pages (hotkey F5) and check the results.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/5_amp_testing_magento_2_validate.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/5_amp_testing_magento_2_validate.jpg\" alt=\"5 amp testing magento 2 validate.jpg\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Important Information:<\/p>\n\n\n\n<p>If the validation failed using any of the methods above, try fixing the issues using our <a href=\"\/docs\/magento-amp\/v3\/troubleshooting\">Troubleshooting AMP<\/a> articles. Otherwise, check the <a href=\"https:\/\/amp.dev\/support\/faq\/\" rel=\"noreferrer noopener nofollow\" target=\"_blank\">AMP documentation and Guidelines<\/a> or contact our <a href=\"\/contacts\" rel=\"noreferrer noopener nofollow\" target=\"_blank\">tech support<\/a>.<\/p>\n\n\n\n<p>Additionally, learn <a href=\"\/docs\/magento-amp\/v3\/userguides\/google-search-console\">how to keep Magento AMP pages valid with Google Search Console<\/a>.<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to test and validate your Magento 2 AMP pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[330],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Validate Magento 2 AMP Pages - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this article, you will learn how to test and validate your Magento 2 AMP pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Validate Magento 2 AMP Pages\" \/>\n<meta property=\"og:description\" content=\"In this article, you will learn how to test and validate your Magento 2 AMP pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-06T14:46:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T10:37:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/05\/4_amp_testing_magento_2_validate.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Validate Magento 2 AMP Pages - Plumrocket Documentation","description":"In this article, you will learn how to test and validate your Magento 2 AMP pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation","og_locale":"en_US","og_type":"article","og_title":"How to Validate Magento 2 AMP Pages","og_description":"In this article, you will learn how to test and validate your Magento 2 AMP pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.","og_url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation","og_site_name":"Plumrocket Documentation","article_published_time":"2021-07-06T14:46:19+00:00","article_modified_time":"2021-11-18T10:37:36+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/05\/4_amp_testing_magento_2_validate.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2020\/05\/4_amp_testing_magento_2_validate.jpg","contentUrl":"\/docs\/wp-content\/uploads\/2020\/05\/4_amp_testing_magento_2_validate.jpg"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation","name":"How to Validate Magento 2 AMP Pages - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation#primaryimage"},"datePublished":"2021-07-06T14:46:19+00:00","dateModified":"2021-11-18T10:37:36+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"In this article, you will learn how to test and validate your Magento 2 AMP pages, as well as make sure these AMP pages have been indexed by Google. Valid AMP pages are indexed and stored in Google Cache, which means that pages load in less than 1 second from mobile Google search results. Please follow the steps below to validate AMP pages.","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides\/validation#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 AMP","item":"https:\/\/plumrocket.com\/magento-amp"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-amp"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3"},{"@type":"ListItem","position":5,"name":"How-to Guides","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/userguides"},{"@type":"ListItem","position":6,"name":"How to Test AMP pages"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/20563"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=20563"}],"version-history":[{"count":10,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/20563\/revisions"}],"predecessor-version":[{"id":25110,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/20563\/revisions\/25110"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=20563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=20563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=20563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}