-
Notifications
You must be signed in to change notification settings - Fork 328
Closed
Labels
Module: AnalyticsGoogle Analytics module related issuesGoogle Analytics module related issuesP0High priorityHigh priorityType: FeatureNew featureNew feature
Description
Feature Description
Until now, AMP's Analytics integration has not supported GA4. Now that it does, Site Kit should be updated accordingly.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- GA4 should add/extend the
amp-analyticstag with its configured measurement ID as per the spec
Implementation Brief
- Extend UA AMP tag to include GA4 tag ID (when UA tag is going to render)
- Otherwise, use existing AMP tag with GA4 tag ID (similar to approach taken with GA4 web tag)
- Finish and merge Add foundation for GA4 with AMP. #7224
Test Coverage
- Tag classes are currently without tests; given the urgency here we can follow this convention and follow-up with added coverage
QA Brief
- This issue changes the way AMP tags are rendered, integrating the GA4 tag with the UA tag when present, otherwise placing the same
amp-analyticstag with only the GA4 ID if UA is not connected or snippet is not enabled - This should only affect GA in AMP and support only UA, only GA4, or both enabled.
- The realtime report in GA can be used to see data come in (there is some delay but you should see hits come through within 30-60s)
Changelog entry
- Add support for tagging with Google Analytics 4 in AMP mode
Metadata
Metadata
Assignees
Labels
Module: AnalyticsGoogle Analytics module related issuesGoogle Analytics module related issuesP0High priorityHigh priorityType: FeatureNew featureNew feature