-
Notifications
You must be signed in to change notification settings - Fork 41
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 consent mode for Google Analytics registry script #243
Labels
enhancement
New feature or request
Comments
Thoughts @huang-julien, @flashdesignory ? |
ah I see... it has to happen before the config gets send, otherwise it wouldn't be a problem. |
Thanks for the issue ! This is a must have for EU users 😅 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🆒 Your use case
The current Google Analytics registry does not use consent mode. This is used for communicating the user's consent status to Google.
🆕 The solution you'd like
I would like to have it as part of the options for the registry script so I can easily define default consent settings as well as the option of opting into consent mode v2.
🔍 Alternatives you've considered
Currently I have opted to just copy the registry script and redefine it with an expanded clientInit property since the default consent needs to be set before
gtag('js', ...)
andgtag('config', ...)
is called.ℹ️ Additional info
No response
The text was updated successfully, but these errors were encountered: