The Google Analytics team has released new Google Analytics measurement capabilities for Accelerated Mobile Pages (AMP) facilitating the ability to identify the best content and optimize user experiences.
The Google Analytics team announcement coincides with the AMP team’s announcement of the launch of an analytics component that will enable measurement on AMP pages.
Developers can us amp-analytics to configure multiple endpoints and data sets. AMP then manages all of the instrumentation to come up with the data specified and shares it with all of analytics providers. No matter how many analytics providers are configured, the AMP runtime will only ever do a single measurement to come up with a value. This improves performance by reducing duplication of effort, batching network requests, and streamlining code paths.
Analytics on AMP is handled by an open source, reusable component that the Google Analytics team helped build. The component can be configured with Google Analytics specific configuration parameters to record pageviews, events, and custom dimensions.