Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GA4 analytics #2105

Merged
merged 1 commit into from Mar 25, 2024
Merged

Add GA4 analytics #2105

merged 1 commit into from Mar 25, 2024

Conversation

patrickpatrickpatrick
Copy link
Contributor

What

Use the `load-analytics' script of govuk_publishing_components to add GA4 analytics to collections-publisher. Includes extra configuration to set the correct domains for GA4 to initialise and code to automatically accept all cookies to make tracking work.

Why

UA is being deprecated, we need to switch our apps to use GA4 instead.

Relevant Trello Card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Use the `load-analytics' script of govuk_publishing_components to add
GA4 analytics to collections-publisher. Includes extra configuration to
set the correct domains for GA4 to initialise and code to automatically
accept all cookies to make tracking work.
Copy link
Contributor

@anatron anatron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@patrickpatrickpatrick patrickpatrickpatrick merged commit 87132cd into main Mar 25, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants