Open joachimhviid opened 2 months ago
Thoughts @huang-julien, @flashdesignory ?
ah I see... it has to happen before the config gets send, otherwise it wouldn't be a problem. Seems reasonable to include.
Thanks for the issue ! This is a must have for EU users π
π 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