Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var redact_ad_data = false;
- // set "true" to increase the fidelity of advertising storage restrictions
- window.dataLayer = window.dataLayer || [];
- function gtag() {
- dataLayer.push(arguments);
- }
- gtag("consent", "default", {
- ad_storage: "denied",
- ad_user_data: "denied",
- ad_personalization: "denied",
- analytics_storage: "denied",
- functionality_storage: "denied",
- personalization_storage: "denied",
- security_storage: "granted",
- wait_for_update: 2000,
- });
- gtag("set", "ads_data_redaction", true);
- gtag("set", "url_passthrough", true);
- function CookieLawInfo_Accept_Callback() {
- if(CLI.consent['advertisement'] == true) {
- gtag('consent', 'update', {
- ad_storage: "granted",
- ad_user_data: "granted",
- ad_personalization: "granted"
- });
- }
- if(CLI.consent['analytics'] == true) {
- gtag('consent', 'update', {
- analytics_storage: "granted",
- functionality_storage: "granted",
- personalization_storage: "granted",
- security_storage: "granted"
- });
- }
- set_ads_data_redaction();
- }
- function set_ads_data_redaction() {
- if(redact_ad_data && wt_cli_ad_storage == 'denied') {
- gtag('set', 'ads_data_redaction', true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment