TLDR

It works with Accelerated Mobile Pages; upgrades permit data collecting, although there are still limits...

Accelerated Mobile Pages (AMP) support is now available for all websites in Google Analytics 4 (GA4), according to Google Ads Liaison Ginny Marvin.

According to Marvin,

"Today, we are rolling out AMP support in GA4 to all publishers." A simple change to your amp-analytics configuration will allow analytics to begin flowing into GA4 immediately."

AMP & GA4 Integration Details

While AMP pages are similar to HTML and work in any browser, they don’t support the gtag.js used in Google Analytics. Instead, a separate tag is explicitly provided for AMP.

Information on AMP and GA4 Integration

While AMP pages are identical to HTML and may be seen in any browser, they do not support the gtag.js required by Google Analytics. Instead, an explicit AMP tag is provided.

The identification of an AMP user is also separate. GA4 generates user IDs at random and saves them in local storage or cookies.

When a user clears cookies and local storage, the user identification is reset. Because IP addresses are neither registered or saved in GA4, IP masking is unneeded.

Requirements

You must use the AMP Analytics tag to collect data. Page data, user data, browsing data, browser data, interaction data, and event data are all collected by AMP Analytics.

Moreover, Google mandates that all websites declare to users how data is gathered and used in GA4 and give an opt-out option.

Limitations

In terms of AMP, GA4 has several restrictions. It does not support consent mode settings, dynamic configuration, e-commerce events, or other Google Analytics features.

According to Google, more AMP features will be added over time.

Google AMP Client ID API & Cache Analysis

It's worth mentioning that Google just released the AMP Client ID API in order to better monitor users across AMP sites.

Before, if a person engaged with your material on both your website and through Google viewers such as the Google AMP viewer or Google Search, they would appear in your statistics as two unique users because the information was provided in two different contexts.

The AMP Client ID API lets you link a single user with a consistent identity across different contexts, giving you a comprehensive picture of their engagement with your AMP content regardless of where it's presented.

Next Steps

Analytics may be set up to measure how people interact with your AMP pages on Google's cache vs your website.

To do so, take the following steps:

  • Add the 'ampHost' code to your AMP pages' Analytics tag.
  • Set up a custom parameter called "ampHost" in your Google Analytics 4 property to track where the AMP page is served.
  • For the modifications to take effect, relaunch your AMP pages.

Once you've accomplished those steps, GA4 will track whether each AMP pageview originated from your domain or the Google AMP cache and report on it using the "ampHost" custom option.

This can provide you insight into user interaction across all scenarios where your AMP content is presented.

Hocalwire simplifies things for writers by including Mobile First SEO Optimisation as a built-in feature. You must understand how we create technically sound websites that meet SEO and indexing requirements so that you can focus on producing high-quality content and expanding your revenue opportunities. If you're looking for one, book a demo of Hocalwire CMS.