Saturday, December 9, 2023

Google Analytics 4 Now Helps Accelerated Cell Pages (AMP)


Immediately, Google Adverts Liaison Ginny Marvin announced that Accelerated Cell Pages (AMP) help is now out there for all web sites in Google Analytics 4 (GA4).

Marvin said,

“Immediately, we’re rolling out help for AMP in GA4 to all publishers. A easy replace to your amp-analytics configuration will allow analytics to begin flowing instantly into GA4.”

AMP & GA4 Integration Particulars

Whereas AMP pages are much like HTML and work in any browser, they don’t help the gtag.js utilized in Google Analytics. As a substitute, a separate tag is explicitly supplied for AMP.

Consumer identification for AMP is completely different as effectively. In GA4, person identifiers are randomly generated and saved in native storage or cookies.

The person identifier is reset when the person clears cookies and native storage. Which means IP masking is pointless, as IP addresses aren’t logged or saved in GA4.


To gather knowledge, you have to implement the AMP Analytics tag. AMP Analytics collects web page knowledge, person knowledge, looking knowledge, browser knowledge, interplay knowledge, and occasion knowledge.

Moreover, Google requires all web sites to speak in confidence to customers how knowledge is collected and utilized in GA4 and supply an choice to choose out.


GA4 has some limitations relating to AMP. It doesn’t help consent mode settings, dynamic configuration, ecommerce occasions, or extra enhancements out there in customary Google Analytics.

Extra AMP capabilities will likely be added over time, in accordance with Google.

Google AMP Shopper ID API & Cache Evaluation

It’s price noting that Google just lately launched the AMP Shopper ID API to trace customers throughout AMP pages higher.

Till now, if a person interacted together with your content material on each your web site and thru Google viewers just like the Google AMP viewer or Google Search, they would seem as two separate customers in your analytics because the content material was being served in two completely different contexts.

The AMP Shopper ID API permits you to affiliate a constant identifier with a single person throughout these contexts to realize an entire view of their engagement together with your AMP content material no matter the place it’s served.

Subsequent Steps

You possibly can configure Analytics to trace how customers work together together with your AMP pages on Google’s cache versus your web site.

To take action, comply with these steps:

  • Add the next code to the Analytics tag in your AMP pages:
'ampHost': '$ampdocHost'
  • In your Google Analytics 4 property, arrange a customized parameter named “ampHost” to trace the place the AMP web page is served.
  • Relaunch your AMP pages for the modifications to take impact.

When you’ve accomplished these steps, GA4 will monitor whether or not every AMP pageview got here out of your area or the Google AMP cache and ship that info to your stories beneath the “ampHost” customized parameter.

This will present visibility into person engagement throughout the contexts through which your AMP content material is served.

For extra on GA4 & AMP, see Google’s official help document.

Featured Picture: Postmodern Studio/Shutterstock

Source link

Read more

Local News