diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 0dbce88..bc9d773 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -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" ] } } diff --git a/libraries/CookieNoticePro/cookienoticepro.script.js b/libraries/CookieNoticePro/cookienoticepro.script.js index 025bc08..cbd0d54 100644 --- a/libraries/CookieNoticePro/cookienoticepro.script.js +++ b/libraries/CookieNoticePro/cookienoticepro.script.js @@ -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: "/" diff --git a/templates_user/cookies.php b/templates_user/cookies.php index 9d3ca81..840f675 100644 --- a/templates_user/cookies.php +++ b/templates_user/cookies.php @@ -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' + }); } } \ No newline at end of file