Google Consent Mode
-
Goodmorning Dev Team,
I’m trying to implement your code you wrote on this guide for the Google Consent Mode:<script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag(“consent”, “default”, { ad_storage: “denied”, analytics_storage: “denied”, functionality_storage: “denied”, personalization_storage: “denied”, security_storage: “granted“, wait_for_update: 2000, }); gtag(“set”, “ads_data_redaction”, true); </script>
I’ve added in the header the custom code, then right after the gtag code script and then wordpress right after loads the cookieyes script.
But with your code provided i get an error in the console, specifically in this line:?
gtag(“consent”,?“default”,?{
With this error:
Uncaught SyntaxError: illegal character U+201CCould you please help me?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Google Consent Mode’ is closed to new replies.