wri / wri_sites

WRI profile
2 stars 2 forks source link

Update Google Consent Mode script #266

Open StudioZut opened 4 months ago

StudioZut commented 4 months ago

Change the script for Google Consent Mode to this, for all sites:

<script>
  window.dataLayer = window.dataLayer ||[];
  function gtag(){dataLayer.push(arguments);}
  gtag('consent','default',{
    'ad_storage':'denied',
    'analytics_storage':'denied',
    'ad_user_data':'denied',
    'ad_personalization':'denied',
    'personalization_storage':'denied',
    'functionality_storage':'granted',
    'security_storage':'granted',
    'wait_for_update': 500
  });
  gtag("set", "ads_data_redaction", true);
</script>
mariacha commented 4 months ago

This went up to the IOs but not flagship yet so moving it back to Ready to Deploy. Once it goes to Flagship, I'll close.

shannon-paton commented 3 months ago

Looks good on test