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