Automattic, the company running the popular WordPress CMS, has recently announced that it is enabling Google’s “AMP” by default for all WordPress blogs.
What is AMP?
According to Google, the “Accelerated Mobile Pages Project” is an “open source initiative that embodies the vision that publishers can create mobile optimized content once and have it load instantly everywhere.” The main goal of AMP is to speed up the mobile Web.
“The Accelerated Mobile Pages (AMP) Project is an initiative to improve the mobile web and enhance the distribution ecosystem. If content is fast, flexible and beautiful, including compelling and effective ads, we can preserve the open web publishing model as well as the revenue streams so important to the sustainability of quality publishing.”
How does AMP affect your WordPress site?
AMP is enabled by default for all WordPress.com users and you’ll start seeing speedy results in Google search results with a small lightning bolt next to them to indicate that they’ll load faster.
Is AMP compatible with Google Analytics?
The AMP WordPress plugin does now enable amp-analytics out of the box, but it’s fairly easy to enable.
To enable the AMP WordPress plugin to work with Google Analytics, edit the amp-post-template-actions.php (different file from that previously mentioned) file, either via FTP or within your WordPress Dashboard (go to Plugins > Editor and then select “AMP”), and add the following to the end of it: