This commit is contained in:
2026-04-28 00:24:15 +02:00
parent 95138003c6
commit 2114254518
3 changed files with 20 additions and 17 deletions

View File

@@ -4,7 +4,9 @@
"Bash(php:*)",
"Bash(python:*)",
"mcp__serena__get_current_config",
"mcp__serena__activate_project"
"mcp__serena__activate_project",
"mcp__plugin_serena_serena__activate_project",
"mcp__plugin_serena_serena__search_for_pattern"
]
}
}

View File

@@ -349,7 +349,7 @@ Make your own cookie information popup in minutes.
});
}
gtag('consent', 'update', {
'analytics_storage': 'granted'
'analytics_storage': 'denied'
});
}
// if marketing or advertising is accepted
@@ -366,12 +366,12 @@ Make your own cookie information popup in minutes.
'ad_personalization': 'granted'
});
} else {
gtag('consent', 'update', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});
if(googleConsentAdPrefs === true) {
gtag('consent', 'update', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});
createCookie(GOOGLE_CONSENT_MODE_AD_PREFS, "", {
expires: daysToUTC(-365),
path: "/"

View File

@@ -26,27 +26,28 @@
});
var injectScripts = function injectScripts() {
// Example: Google Analytics
// Google Analytics consent
if (cookieNoticePro.isPreferenceAccepted("analytics") === true) {
//console.log("Analytics Scripts Running....");
gtag('consent', 'update', {
'analytics_storage': 'granted'
});
}
// Example: Google Adwords cookie, DoubleClick, Remarketing pixels, Social Media cookies
// Google Adwords, DoubleClick, Remarketing pixels, Social Media cookies
if (cookieNoticePro.isPreferenceAccepted("marketing") === true) {
gtag('consent', 'update', {
'ad_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted',
'analytics_storage': 'granted',
'personalization_storage': 'granted',
'security_storage': 'granted',
'functionality_storage': 'granted',
"wait_for_update": 2000
'ad_personalization': 'granted'
});
}
// Example: Remember password, language, etc
if (cookieNoticePro.isPreferenceAccepted("preferences") === true) {
//console.log("Preferences Scripts Running....");
gtag('consent', 'update', {
'personalization_storage': 'granted',
'security_storage': 'granted',
'functionality_storage': 'granted'
});
}
}
</script>