'
}, {
title: 'Cookie strettamente necessari',
description: 'Sono i cookie tecnici necessari al funzionamento del sito.',
toggle: {
value: 'necessary',
enabled: true,
readonly: true // cookie categories with readonly=true are all treated as "necessary cookies"
}
},{
title : "Analytics",
description: 'Questi cookie permettono di monitorare e analizzare i dati di traffico e servono a tener traccia del comportamento dell\'Utente, al fine di migliorare l\'esperienza utente. L\'IP è anonimizzato.',
toggle : {
value : 'analytics',
enabled : false,
readonly: false,
autoClear: {
cookies: [
{
name: /^(_ga)/ //regex
}
]
}
},
cookie_table: [ // list of all expected cookies
{
col1: '^_ga', // match all cookies starting with "_ga"
col2: 'google.com',
col3: '2 years',
col4: 'description ...',
is_regex: true
}
]
}, {
title : "Google Maps",
description: 'Questi cookie permettono di visualizzare le mappe di Google Maps.',
toggle : {
value : 'google_maps',
enabled : false,
readonly: false
}
}, {
title : "YouTube",
description: 'Questi cookie permettono di visualizzare i video di YouTube.',
toggle : {
value : 'youtube',
enabled : false,
readonly: false
}
},/*{
title: 'Performance and Analytics cookies',
description: 'These cookies allow the website to remember the choices you have made in the past',
toggle: {
value: 'analytics', // your cookie category
enabled: false,
readonly: false
},
cookie_table: [ // list of all expected cookies
{
col1: '^_ga', // match all cookies starting with "_ga"
col2: 'google.com',
col3: '2 years',
col4: 'description ...',
is_regex: true
},
{
col1: '_gid',
col2: 'google.com',
col3: '1 day',
col4: 'description ...',
}
]
}, {
title: 'Advertisement and Targeting cookies',
description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you',
toggle: {
value: 'targeting',
enabled: false,
readonly: false
}
}, {
title: 'More information',
description: 'For any queries in relation to our policy on cookies and your choices, please contact us.',
}*/
]
}
},
'en': {
consent_modal: {
title: 'Cookie policy',
description: 'We use cookies to improve the browsing experience of the website. ',
primary_btn: {
text: 'Accept all',
role: 'accept_all' // 'accept_selected' or 'accept_all'
},
secondary_btn: {
text: 'Reject all',
role: 'accept_necessary' // 'settings' or 'accept_necessary'
}
},
settings_modal: {
title: 'Cookie preferences',
save_settings_btn: 'Save settings',
accept_all_btn: 'Accept all',
reject_all_btn: 'Reject all',
close_btn_label: 'Close',
cookie_table_headers: [
{ col1: 'Name'},
{ col2: 'Domain'},
{ col3: 'Expiration'},
{ col4: 'Description'},
{ col5: 'Type'}
],
blocks: [
{
title: 'Cookie usage',
description: 'Utilizziamo i cookie per migliorare l\'esperienza di navigazione del sito. Per saperne di più consulta la nostra Cookie policy'
}, {
title: 'Strictly technical cookies',
description: 'These are the cookies needed for the website operation.',
toggle: {
value: 'necessary',
enabled: true,
readonly: true // cookie categories with readonly=true are all treated as "necessary cookies"
}
},{
title : "Analytics",
description: 'These cookies allow traffic data to be monitored and analyzed and are used to keep track of User behavior in order to improve the user experience. The IP is anonymised.',
toggle : {
value : 'analytics',
enabled : false,
readonly: false,
autoClear: {
cookies: [
{
name: /^(_ga)/ //regex
}
]
}
},
cookie_table: [ // list of all expected cookies
{
col1: '^_ga', // match all cookies starting with "_ga"
col2: 'google.com',
col3: '2 years',
col4: 'description ...',
is_regex: true
}
]
}, {
title : "Google Maps",
description: 'This cookies allow the display of Google Maps.',
toggle : {
value : 'google_maps',
enabled : false,
readonly: false
}
}, {
title : "YouTube",
description: 'This cookies allow to watch Youtube videos.',
toggle : {
value : 'youtube',
enabled : false,
readonly: false
}
},/*{
title: 'Performance and Analytics cookies',
description: 'These cookies allow the website to remember the choices you have made in the past',
toggle: {
value: 'analytics', // your cookie category
enabled: false,
readonly: false
},
cookie_table: [ // list of all expected cookies
{
col1: '^_ga', // match all cookies starting with "_ga"
col2: 'google.com',
col3: '2 years',
col4: 'description ...',
is_regex: true
},
{
col1: '_gid',
col2: 'google.com',
col3: '1 day',
col4: 'description ...',
}
]
}, {
title: 'Advertisement and Targeting cookies',
description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you',
toggle: {
value: 'targeting',
enabled: false,
readonly: false
}
}, {
title: 'More information',
description: 'For any queries in relation to our policy on cookies and your choices, please contact us.',
}*/
]
}
}
}
});
$(".youtube_not_accepted").contents().find("a").on("click", function(){
cc.showSettings();
});
});
function reloadJsGM(accepted, tipo) {
els = document.querySelectorAll('[data-cc="'+tipo+'"]');
if (accepted)
{
els.forEach((el) => {
el.setAttribute('src', el.dataset.src);
el.classList.remove("not_visible");
});
} else {
els.forEach((el) => {
el.removeAttribute('src');
el.classList.add("not_visible");
});
}
els = document.querySelectorAll('[data-cc="'+tipo+'_na"]');
if (accepted)
{
els.forEach((el) => {
el.classList.add("not_visible");
});
} else {
els.forEach((el) => {
el.classList.remove("not_visible");
});
}
}
function update_ga(obj) {
typeof gtag === 'function' && gtag('consent', 'update', obj);
//console.log(obj);
}