Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Google Consent Mode script #266

Open
StudioZut opened this issue May 23, 2024 · 2 comments
Open

Update Google Consent Mode script #266

StudioZut opened this issue May 23, 2024 · 2 comments
Assignees

Comments

@StudioZut
Copy link
Contributor

StudioZut commented May 23, 2024

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 pushed a commit that referenced this issue May 29, 2024
mariacha added a commit that referenced this issue May 29, 2024
@mariacha
Copy link
Collaborator

mariacha commented Jun 4, 2024

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
Copy link

Looks good on test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants