| Server IP : 193.146.211.90 / Your IP : 10.85.6.55 Web Server : Apache System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64 User : 1001 ( 1001) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/cookie-law-info/lite/frontend/js/ |
Upload File : |
const data = window._ckyGcm;
let setDefaultSetting = true;
const regionSettings = data.default_settings || [];
const waitForTime = data.wait_for_update;
const dataLayerName =
window.ckySettings && window.ckySettings.dataLayerName
? window.ckySettings.dataLayerName
: "dataLayer";
window[dataLayerName] = window[dataLayerName] || [];
function gtag() {
window[dataLayerName].push(arguments);
}
function setConsentInitStates(consentData) {
if (waitForTime > 0) consentData.wait_for_update = waitForTime;
gtag("consent", "default", consentData );
}
gtag("set", "ads_data_redaction", !!data.ads_data_redaction);
gtag("set", "url_passthrough", !!data.url_passthrough);
gtag("set", "developer_id.dY2Q2ZW", true);
for (let index = 0; index < regionSettings.length; index++) {
const regionSetting = regionSettings[index];
const consentRegionData = {
ad_storage: regionSetting.advertisement,
analytics_storage: regionSetting.analytics,
functionality_storage: regionSetting.functional,
personalization_storage: regionSetting.functional,
security_storage: regionSetting.necessary,
ad_user_data: regionSetting.ad_user_data,
ad_personalization: regionSetting.ad_personalization
};
const regionsToSetFor = regionSetting.regions
.split(",")
.map((region) => region.trim())
.filter((region) => region);
if (regionsToSetFor.length > 0 && regionsToSetFor[0].toLowerCase() !== "all")
consentRegionData.region = regionsToSetFor;
else setDefaultSetting = false;
setConsentInitStates(consentRegionData);
}
if (setDefaultSetting) {
setConsentInitStates({
ad_storage: "denied",
analytics_storage: "denied",
functionality_storage: "denied",
personalization_storage: "denied",
security_storage: "granted",
ad_user_data: "denied",
ad_personalization: "denied"
});
}