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

wait_for_update - Optional: Integrate with asynchronous consent management platforms #70

Open
gotanasro3 opened this issue Feb 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@gotanasro3
Copy link

https://developers.google.com/tag-platform/security/guides/consent?consentmode=advance

Optional: Integrate with asynchronous consent management platforms
If your banner loads asynchronously, it might not always run before your Google tags. To handle such situations, specify wait_for_update along with a millisecond value to control how long to wait before data is sent.

For example, to deny ad_storage on a particular page by default, but to allow your CMP to update consent status, use wait_for_update. In the following code, ad_storage defaults to denied, and the consent tool is given 500 milliseconds to call gtag('consent', 'update', ...) before tags fire:

could you please implement this option as well?

@tg666
Copy link
Contributor

tg666 commented Feb 27, 2024

I don't think it needs to be implemented.
We set default consent already in the GTM template, according to the user's previous preferences.
The template should be set to trigger Consent initialization - all pages, so it will trigger before other tags and set the default consent.

@jelen07 jelen07 added the enhancement New feature or request label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants