Does Zest work with Google Consent Mode v2? I need to pass consent signals to GTM/GA4. #1
|
I'm setting up analytics on a new site and need proper consent signals for Google's March 2024 requirements. Does Zest handle Consent Mode v2 out of the box, or do I need extra config? Specifically I need |
Replies: 1 comment
|
Yes, Zest supports Google Consent Mode v2 out of the box. Just flip one flag: window.ZestConfig = {
consentModeGoogle: true
};Or use a data attribute on the script tag: <script
src="https://cdn.jsdelivr.net/npm/@freshjuice/zest"
data-consent-mode-google
></script>When enabled, Zest automatically pushes a How to wire it
What Zest pushes
The full reference is on the Configuration page under Consent Mode Integrations, with usage examples at cookiezest.com/docs/examples/#google-consent-mode-v2.
|
Yes, Zest supports Google Consent Mode v2 out of the box. Just flip one flag:
Or use a data attribute on the script tag:
When enabled, Zest automatically pushes a
'default'denied state for all consent types (analytics_storage,ad_storage,ad_user_data, etc.) on initialization — this is the critical GDPR requirement: signals are set before GTM or gtag loads. Then, on every consent change (accept/reject/modify), Zest sends'update'signals reflecting the visitor's actual choices.How to wire it
consentModeGoogle: truein your Zest confi…