Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to install google consent script for CMP banner

window.dataLayer = window.dataLayer || [];
        function gtag() {
            dataLayer.push(arguments);
        }
        gtag("consent", "default", {
            ad_storage: "denied",
            analytics_storage: "denied",
            wait_for_update: 1000
        });
          gtag('set', 'url_passthrough', true);
          gtag("set", "ads_data_redaction", true);
s
 
PREVIOUS NEXT
Tagged: #How #install #google #consent #script #CMP #banner
ADD COMMENT
Topic
Name
8+5 =