Skip to content

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

@gotanasro3

Description

@gotanasro3

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions