{"id":1697,"date":"2016-08-09T12:14:15","date_gmt":"2016-08-09T12:14:15","guid":{"rendered":"https:\/\/www.searchenginewatch.com\/2016\/08\/09\/how-to-implement-google-amp-on-your-wordpress-site-as-easily-as-possible\/"},"modified":"2020-02-25T17:32:30","modified_gmt":"2020-02-25T17:32:30","slug":"how-to-implement-google-amp-on-your-wordpress-site-as-easily-as-possible","status":"publish","type":"post","link":"https:\/\/searchenginewatch.com\/2016\/08\/09\/how-to-implement-google-amp-on-your-wordpress-site-as-easily-as-possible\/","title":{"rendered":"How to implement Google AMP on your WordPress site as easily as possible"},"content":{"rendered":"<p><strong>With the news that <a href=\"https:\/\/searchenginewatch.com\/2016\/08\/02\/google-amp-is-coming-to-organic-search-results\/\">Google will be rolling out its accelerated mobile pages (AMP) to all organic listings<\/a> beyond the \u2018Top Stories\u2019 you\u2019ll be forgiven for getting a little bit anxious.<\/strong><\/p>\n<p>Don\u2019t worry. There are five solid reasons why you don\u2019t need to panic\u2026<\/p>\n<ol>\n<li>You\u2019ve got till the end of the year<\/li>\n<li><a href=\"https:\/\/searchenginewatch.com\/2016\/07\/06\/is-google-amp-a-ranking-signal\/\">Google AMP isn\u2019t technically a ranking signal<\/a><\/li>\n<li>It\u2019s *fairly* easy to implement<\/li>\n<li>The cynical among you will probably be proved correct that <a href=\"https:\/\/searchenginewatch.com\/2019\/04\/25\/whats-it-like-using-duckduckgo-in-2019\/\">Google<\/a> will just jettison the whole thing after a year anyway (see: <a href=\"https:\/\/searchenginewatch.com\/sew\/news\/2362631\/google-drops-authorship-from-search-results\">authorship<\/a>)<\/li>\n<li>There are probably more <a href=\"https:\/\/searchenginewatch.com\/2016\/01\/21\/seo-basics-22-essentials-you-need-for-optimizing-your-site\/\">important things<\/a> to worry about<\/li>\n<\/ol>\n<p>Right now though we\u2019re going to concentrate on those top three points, because ultimately enabling AMP means providing a faster, more user friendly experience for mobile search visitors and it is, as I said, *fairly* easy to implement. So you may as well\u00a0give it a go.<\/p>\n<p>Yes you should be providing the fastest, most user friendly mobile experience within your non-AMPed web pages anyway. And yes surely it would be better for <a href=\"https:\/\/searchenginewatch.com\/2019\/07\/12\/how-to-get-featured-snippets-no-link-building\/\">Google<\/a> to promote education on how to provide better, faster mobile pages, rather than insisting that\u00a0webmasters implement what is essentially a quick fix.<\/p>\n<p>But right now, <a href=\"https:\/\/searchenginewatch.com\/2020\/01\/02\/quantum-supremacy-and-eight-seo-trends-2020\/\">Google<\/a> is pushing AMP, and this is how (after much frustration and banging my head against a laptop) I successfully implemented AMP for my own site.<\/p>\n<h2>1) First you\u2019ll need\u2026<\/h2>\n<p>This is very specific to my own experience, and you may have a much easier, or much more difficult, route.<\/p>\n<p>However if you have a WordPress site, all you\u2019ll need is to download a couple of plug-ins and have access to <a href=\"https:\/\/searchenginewatch.com\/2016\/05\/09\/google-search-console-a-complete-overview\/\">Search Console<\/a>. You may also need access to your web <a href=\"https:\/\/searchenginewatch.com\/2019\/02\/06\/using-python-to-recover-seo-site-traffic-part-one\/\">development<\/a> hosting platform if things don\u2019t run smoothly.<\/p>\n<h2>2) Download the Automattic AMP plug-in\u2026<\/h2>\n<p>At first we used a plug-in from PageFrog that promised to deliver AMP content and Facebook Instant Articles in one handy tool. However this proved to be unworkable and glitchy.<\/p>\n<p>Instead we downloaded the <a href=\"https:\/\/wordpress.org\/plugins\/amp\/\">Automattic AMP plug-in<\/a> as recommended by Yoast<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63157\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/AMP-by-Automattic.png\" alt=\"AMP by Automattic\" width=\"600\" height=\"191\" \/><\/p>\n<p>Once you\u2019ve enabled the plugin, it adds a standard meta tag in the head of your webpages to help Google recognise that AMP enabled versions of them exist.<\/p>\n<p>You can check for yourself, by adding the \/amp\/ suffix to the end of any URL on your site.<\/p>\n<p>Here\u2019s one of our normal webpages on your desktop:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63159\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/methods-unsound-webpage.png\" alt=\"methods unsound webpage\" width=\"700\" height=\"449\" \/><\/p>\n<p>Here\u2019s the same webpage on your desktop with the AMP suffix:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63160\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/methods-unsound-AMP-page.png\" alt=\"methods unsound AMP page\" width=\"700\" height=\"527\" \/><\/p>\n<p>As you can see it\u2019s very basic stuff. But have no fear, we can style it out!<\/p>\n<h2>3) Download the Yoast Glue plug-in<\/h2>\n<p>Yoast has developed its own simple to use plug-in called <a href=\"https:\/\/wordpress.org\/plugins\/glue-for-yoast-seo-amp\/\">Glue<\/a> that adds styling options for the Automattic plug-in.<\/p>\n<p>Once you\u2019ve enabled Glue, you can see the settings under <strong>SEO&gt;AMP&gt;Design<\/strong>. Here you can set the colours and fonts to be closer to your original desktop page, as well as uploading your own logo and adding you own custom CSS.<\/p>\n<p>Here\u2019s a quick example of our AMP page after a couple of minutes spent in the settings\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63161\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/methods-unsound-AMP-page-with-styling.png\" alt=\"methods unsound AMP page with styling\" width=\"700\" height=\"560\" \/><\/p>\n<p>It\u2019s not perfect yet, but it\u2019s getting there.<\/p>\n<p>Next you\u2019ll need to check that Google is indexing your AMP pages properly&#8230;<\/p>\n<h2>4) Visit <a href=\"https:\/\/searchenginewatch.com\/2019\/04\/05\/google-search-console-guide\/\">Search Console<\/a><\/h2>\n<p>If you don\u2019t have <a href=\"https:\/\/searchenginewatch.com\/2018\/01\/30\/inside-googles-new-search-console-whats-new-whats-the-same-and-whats-still-to-come\/\">Search Console<\/a>, then sign-up right now, or ask the webmaster for permission.<\/p>\n<p>Once you\u2019re inside, select your site from the dashboard, then click on <strong>Search Appearance&gt;Accelerated Mobile Pages.<\/strong><\/p>\n<p>Upsettingly for us, and right up until just a few days ago, Google was reporting us having 258 AMP pages with errors, and this figure only increased the more we published.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63162\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/Search-Console-Accelerated-Mobile-Pages-report.png\" alt=\"Search-Console-Accelerated-Mobile-Pages-report\" width=\"1000\" height=\"490\" \/><\/p>\n<p>Luckily Google provides a handy tool to check exactly what may be the cause.<\/p>\n<h2>5) Run the AMP validator tool<\/h2>\n<p>As you can see, we have a problem with \u2018user authored Java script\u2019 which can block Google indexing the AMP content.<\/p>\n<p>Click on the specific issue you need to address\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63163\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/map-errors.png\" alt=\"map errors\" width=\"500\" height=\"476\" \/><\/p>\n<p>This will take you to a list of error-filled webpages. Click on the first page&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63164\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/amop-pages-failing.png\" alt=\"amop pages failing\" width=\"600\" height=\"308\" \/><\/p>\n<p>You\u2019ll now see a two-step tool for discovering your errors.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63165\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/validator-tool.png\" alt=\"validator tool\" width=\"600\" height=\"476\" \/><\/p>\n<p><strong>1)<\/strong> Will take you to a <a href=\"https:\/\/www.ampproject.org\/docs\/reference\/spec.html\">help page<\/a> featuring the HTML reference for AMP.<\/p>\n<p><strong>2)<\/strong> Will run the validation tool to test for errors.<\/p>\n<p>Click on number 2. This will bring up the HTML for the webpage and pinpoint exactly where it\u2019s failing.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63166\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/AMP-fail.png\" alt=\"AMP fail\" width=\"800\" height=\"218\" \/><\/p>\n<p>For us, it\u2019s that tricksy bit of Javascript flagged above.<\/p>\n<p>Reading along the code revealed its origin. A reporting tool called New Relic, that we had enabled through our web development host Pantheon.<\/p>\n<p>It was entirely our fault. We enabled it and we didn\u2019t realise the Javascript it placed within our HTML would block AMP.<\/p>\n<p>All it took to fix the problem was logging into Pantheon and deactivating New Relic.<\/p>\n<p>Within days we saw an improvement. And after around six days, we now have 328 successfully indexed AMP pages! Just look at the way those streams cross\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63167\" src=\"https:\/\/searchenginewatch.com\/wp-content\/uploads\/sites\/25\/2016\/08\/amp-page-checker.png\" alt=\"amp page checker\" width=\"800\" height=\"411\" \/><\/p>\n<p>Also the 67 pages showing errors haven\u2019t been indexed yet. When I run the validation tool, they come up as clear.<\/p>\n<p>So now all that\u2019s left to do is sit and wait for AMP pages to appear in organic results, and for our new mobile-first audience to come trickling in.<\/p>\n<p>*sits twiddling thumbs, stares out of window, sighs*<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the news that Google will be rolling out its accelerated mobile pages (AMP) to all organic listings beyond the \u2018Top Stories\u2019 you\u2019ll be forgiven for getting a little bit panicky.<\/p>\n","protected":false},"author":136,"featured_media":1318,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,5],"tags":[88,319,275,1372,27],"content_type":[27095],"class_list":["post-1697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile","category-seo","tag-accelerated-mobile-pages","tag-amp","tag-mobile-design","tag-mobile-friendliness","tag-wordpress","content_type-news"],"acf":{"tad_independentcommercial":false,"tad_content_format":false},"post_info":{"name":"Christopher Ratcliff","title":"","thumbnail_url":"https:\/\/searchenginewatch.com\/wp-content\/uploads\/2018\/10\/Screen-Shot-2016-08-02-at-20.56.02-120x90.png","category":"Mobile","timeago":"10y"},"_links":{"self":[{"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/posts\/1697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/users\/136"}],"replies":[{"embeddable":true,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/comments?post=1697"}],"version-history":[{"count":0,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/posts\/1697\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/media\/1318"}],"wp:attachment":[{"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/media?parent=1697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/categories?post=1697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/tags?post=1697"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/searchenginewatch.com\/wp-json\/wp\/v2\/content_type?post=1697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}