Closed anish-q closed 1 year ago
Spike
UA-
or-else fallback to GA4.featureConfig
in frontend.Build: support-amp-ga4-11947 Env: Malibu Staging Test Result - https://docs.google.com/document/d/1R9ZindpP-yBgln4tU3HYSa07TKC8-HmBBm-n46byLqU/edit Moving to QA Complete.
@devasenamurugesan not able to view the above doc pls make it public
Google has finally brought support: https://developers.google.com/analytics/devguides/collection/amp-analytics/
<amp-analytics type="gtag" data-credentials="include">
<script type="application/json">
{
"vars" : {
"gtag_id": "<GA_MEASUREMENT_ID>",
"config" : {
"<GA_MEASUREMENT_ID>": { "groups": "default" }
}
}
}
</script>
</amp-analytics>
<GA_MEASUREMENT_ID>
to be replaced with the GA4 measurement ID
This is LIVE
As per the reports from SEOs Google is not bringing direct GA4 support for AMP. The most common method used as an alternative is explained in https://www.thyngster.com/how-to-track-amp-pages-with-google-analytics-4. Please implement this feature at the earliest as GA3 is scaled down and is going to be shut down by July 1.
GTM does not have AMP tag support for AMP containers.