We need to implement Google Consent Mode (GCM) on our plugin.
Consent mode lets you communicate your users’ cookie or app identifier consent status to Google. Tags adjust their behavior and respect users’ choices.
Consent mode receives your users’ consent choices from your cookie banner or widget and dynamically adapts the behavior of Analytics, Ads, and third-party tags that create or read cookies.
We can integrate with Google tag (gtag.js) by calling gtag('consent', ...) to set the default consent state, which may differ for each region, and update the consent state
Consent mode doesn’t save consent choices. We should update the consent status as soon as a user interacts with the consent banner. After a user grants consent, we should persist their choice and call the update command accordingly on subsequent pages (refer to Update consent state for more information)
ad_storage — Enables storage, such as cookies, related to advertising.
ad_user_data — Sets consent for sending user data to Google for online advertising purposes.
ad_personalization — Sets consent for personalized advertising.
analytics_storage — Enables storage, such as cookies, related to analytics (for example, visit duration).
functionality_storage — Enables storage that supports the functionality of the website or app such as language settings.
personalization_storage — Enables storage related to personalization such as video recommendations.
security_storage — Enables storage related to security such as authentication functionality, fraud prevention, and other user protection
Exposing onAccept and/or onChange events/callbacks, via our global pressidiumCookieConsent object, will allow developers to use our plugin to integrate with even more services (refer to the Control programmatically section of our wiki for more information about what’s already available)
We need to implement Google Consent Mode (GCM) on our plugin.
Source: https://support.google.com/google-ads/answer/10000067
A few key points to keep in mind:
gtag.js
) by callinggtag('consent', ...)
to set the default consent state, which may differ for each region, and update the consent statead_user_data
andad_personalization
(refer to Upgrade to consent mode v2 for more information)ad_storage
— Enables storage, such as cookies, related to advertising.ad_user_data
— Sets consent for sending user data to Google for online advertising purposes.ad_personalization
— Sets consent for personalized advertising.analytics_storage
— Enables storage, such as cookies, related to analytics (for example, visit duration).functionality_storage
— Enables storage that supports the functionality of the website or app such as language settings.personalization_storage
— Enables storage related to personalization such as video recommendations.security_storage
— Enables storage related to security such as authentication functionality, fraud prevention, and other user protectiononAccept
and/oronChange
events/callbacks, via our globalpressidiumCookieConsent
object, will allow developers to use our plugin to integrate with even more services (refer to the Control programmatically section of our wiki for more information about what’s already available)