Google Launches Google AMP Client ID API

Google has announced that Google Analytics is enhancing support for AMP (Accelerated Mobile Pages) with the introduction of a new service, the Google AMP Client ID API. The Google AMP Client ID API allows developers to identify and analyze (through Google Analytics) the behavior of users who visit and engage with content on pages whether those pages are AMP or non-AMP, so long as they are within the same domain. The service provides user behavior metrics such as bounce rate, session duration, and pages per session. To use this new service, a couple of code changes are required to opt-in to the solution. The changes include one in your AMP page configuration file, and another in your Google Analytics JavaScript file.

This past May, the company announced that Google Analytics would be enhancing support for AMP. AMP is a Google backed, open-source initiative that allows publishers to build web pages claimed to be lightweight and fast to load on mobile devices. Many publishers have content published on both AMP and non-AMP pages, and there are now billions of published AMP pages. Google explains in the blog post that the company has “heard feedback from Google Analytics customers around challenges in understanding the full customer journey due to site visitors being identified inconsistently across AMP and non-AMP pages.” So the company announced an upcoming Google Analytics enhancement roll out that would address this issue.

To find out more about the Google AMP Client ID API and instructions on how to implement the code, visit the Google Analytics AMP Help Page.

Be sure to read the next Analytics article: In Other API Economy News: Optimizely Event Tracking API and More