How to setup IAB TCF compliant consent
We want use the Use IAB TCF compliant modal for consent. Do we still need to set the default and updated state in a script in de body? Or is consent sent automatically? Any steps to take into account while switching to IAB TCF? Thanks!
4 Replies
Help! Since switching to the IAB TCF compliant consent modal, Google Ads is not receiving any conversions anymore... What can be the cause?


All enabled in Consent settings

Purposes and assignment

Is this script still necessary? (in body of website).
<script>
zaraz.set("google_consent_default", {
'ad_storage' : 'denied',
'ad_user_data' : 'denied',
'ad_personalization' : 'denied',
'analytics_storage' : 'denied'
});
document.addEventListener("zarazConsentAPIReady", () => { var strAnalytics = zaraz.consent.get('tFYh') ? 'granted' : 'denied'; var strMarketing = zaraz.consent.get('WMnQ') ? 'granted' : 'denied'; zaraz.set("google_consent_update", { 'ad_storage' : strMarketing, 'ad_user_data' : strMarketing, 'ad_personalization' : strMarketing, 'analytics_storage' : strAnalytics }); }); </script> Do we still need to set the google_consent_update manually while using the TCF compliant consent modal? Or is it taken care of automatically? Someone? @yo'av Your help would mean a lot to me… I am confused how this has to be setup… thanks!
document.addEventListener("zarazConsentAPIReady", () => { var strAnalytics = zaraz.consent.get('tFYh') ? 'granted' : 'denied'; var strMarketing = zaraz.consent.get('WMnQ') ? 'granted' : 'denied'; zaraz.set("google_consent_update", { 'ad_storage' : strMarketing, 'ad_user_data' : strMarketing, 'ad_personalization' : strMarketing, 'analytics_storage' : strAnalytics }); }); </script> Do we still need to set the google_consent_update manually while using the TCF compliant consent modal? Or is it taken care of automatically? Someone? @yo'av Your help would mean a lot to me… I am confused how this has to be setup… thanks!