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

Support 'wait-for-update' when applying default consent #653

Open
jesspanni opened this issue Jan 26, 2024 · 0 comments
Open

Support 'wait-for-update' when applying default consent #653

jesspanni opened this issue Jan 26, 2024 · 0 comments

Comments

@jesspanni
Copy link

jesspanni commented Jan 26, 2024

It's currently possible to specify a default consent which is useful in circumstances when users are required to explicitly opt-in before sending user data to GA.

<GoogleAnalytics defaultConsent='denied' />

When a user has previously given consent it's important to allow for consent preferences to be applied before tags are fired, otherwise the default consent will be used . Google gtag consent API provides a wait-for-update argument that allows time for cookie consent libraries and platforms to apply previous consent preferences before tags are fired via a call to consent.

It is not currently possible to take advantage of this feature and as a result is likely to result in initial page load analytics from not being collected.

Allowing users to specify a value via GoogleAnalyticsProps seems like a logical option.

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

No branches or pull requests

1 participant