new Image().src='https://cm.g.doubleclick.net/pixel?google_nid=onetag_eb&gdpr=${GDPR}&gdpr_consent=${GDPR_STRING}&google_cm';try{
(function(){

//var a = [["/adesione",[114766,114995]],["/landing/imprese/",114765],["enel.it/it/imprese",114897],["login",114899]];
var a = [["/adesione",114995],["/landing/imprese/",114765],["enel.it/it/imprese",114897],["login",114899]];

a.forEach(function(a){ 
if(location.href.indexOf(a[0])>=0){
var i = a[1];
if(Array.isArray(i)){
  i = i[Math.floor(Math.random()*i.length)];
}
var s = document.createElement("script"); s.referrerPolicy="no-referrer-when-downgrade"; s.async=true; s.src="https://onetag-sys.com/audience-router/?tag=script&segment_id="+i; 
document.body.appendChild(s);
}
});

}());
;!function(m, t) {
t=function(t, e, cb) {window.setTimeout(function() {cb(e)}.bind(this), t)};
for (var p in m) { t((p * 1000), m[p], function(e) {
var xhr = new XMLHttpRequest(); 
xhr.open('GET', "https://onetag-sys.com/sync/o,114729:114993:117390:114660,1/ss=04b08754-245c-4646-ae14-f143c58282ab;ev="+e);
xhr.withCredentials = true;
xhr.onload = function() {
if (xhr.response) {
var res = JSON.parse(xhr.response); 
if (res) {for (var i in res) {new Image().src=res[i];}}}}
xhr.send();})}
} ({15: 385, 30: 386, 60: 387, 120: 398, 180: 399, 360: 400});!function(){"use strict";function t(t){var e=t;try{for(;e.parent!==e;)e.parent.location.href,e=e.parent}catch(t){}return e}var e=function(){return(e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function n(t){try{for(var e=0,n="undefined"!=typeof InstallTrigger?["webgl","moz-webgl","webgl2","experimental-webgl2","experimental-webgl"]:["webgl2","experimental-webgl2","webgl","experimental-webgl","moz-webgl"];e<n.length;e++){var r=n[e],i=document.createElement("canvas").getContext(r);if(i){var a=i.getExtension("WEBGL_debug_renderer_info");if(a&&i.getParameter(a.UNMASKED_RENDERER_WEBGL)&&i.getParameter(a.UNMASKED_VENDOR_WEBGL))return t.gr=i.getParameter(a.UNMASKED_RENDERER_WEBGL),void(t.gv=i.getParameter(a.UNMASKED_VENDOR_WEBGL))}}}catch(t){}}function r(t){if(null!=navigator.getBattery)navigator.getBattery().then(t,(function(){return t()}));else{var e=["mozBattery","webkitBattery","battery"].reduce((function(t,e){return null==t?e in navigator?navigator[e]:null:t}),null);e?t(e):t()}}function i(t,e,i){try{n(t);var a=e.navigator;if(a){try{null!=a.deviceMemory&&(t.dem=a.deviceMemory)}catch(t){}!function(t,e){var n="function",r={rgx:function(t,e){for(var r,i,a,c,o,l,s=0;s<e.length&&!o;){var u=e[s],f=e[s+1];for(r=i=0;r<u.length&&!o;)if(o=u[r++].exec(t))for(a=0;a<f.length;a++)l=o[++i],"object"==typeof(c=f[a])&&c.length>0?2===c.length?typeof c[1]===n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):void 0:this[c[0]]=l?c[1].call(this,l,c[2]):void 0:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):void 0):this[c]=l||void 0;s+=2}}},i={lowerize:function(t){return t.toLowerCase()}},a="architecture",c={pu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[a,"amd64"]],[/(ia32(?=;))/i],[[a,i.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[a,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[a,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[a,/ower/,"",i.lowerize]],[/(sun4\w)[;\)]/i],[[a,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[a,i.lowerize]]]},o=e.userAgent?e.userAgent:"";try{var l=function(){var t={architecture:void 0};return r.rgx.call(t,o,c.pu),t}();t.pua=l.architecture}catch(t){}}(t,a),function(t,e,n){try{r((function(e){e&&(t.bc=e.charging,t.bct=e.chargingTime,t.bdt=e.dischargingTime,t.bl=e.level,null!=t.bct&&t.bct!==1/0||(t.bct=-1),null!=t.bdt&&t.bdt!==1/0||(t.bdt=-1)),n()}))}catch(t){n()}}(t,0,(function(){i()}))}else i()}catch(t){i()}}try{var a={},c="IqH7yH2NZE4nRDJKU4T7EpUrYTbEo4AJR4saSBWG7-o";try{t(window)===top&&(null==localStorage.getItem("onetag_sid")?localStorage.setItem("onetag_sid",c):c=localStorage.getItem("onetag_sid"))}catch(t){}!function(t,e){var n=window,r=document;!function(t,e){try{var n=(r=function(t){if(t.parent===t)return{nd:0,ff:!0};var e=r(t.parent),n=!0;try{t.parent.location.href}catch(t){n=!1}return{nd:e.nd+1,ff:n&&e.ff}})(e);0!==n.nd&&(t.ff=n.ff),t.nd=n.nd}catch(t){}var r}(t,n);try{t.dr=r.referrer,t.lh=r.location.href}catch(t){}try{t.lao=Array.prototype.slice.call(r.location.ancestorOrigins)}catch(t){}!function(t,e){try{var n={ih:"innerHeight",iw:"innerWidth",ow:"outerWidth",oh:"outerHeight"},r={sw:"width",sh:"height",saw:"availWidth",sah:"availHeight"};for(var i in n)t[i]=e[n[i]];for(var i in r)t[i]=e.screen[r[i]];t.sl=null!=e.screenLeft?e.screenLeft:e.screenX,t.st=null!=e.screenTop?e.screenTop:e.screenY}catch(t){}}(t,n),function(t,e){try{if(null!=e.performance){var n=e.performance;if(null!=n.timing&&(t.pt=n.timing),null!=n.navigation&&null!=n.navigation.type){var r="undefined";switch(n.navigation.type){case 0:r="navigate";break;case 1:r="reload";break;case 2:r="back_forward"}t.nt=r}}}catch(r){}}(t,n),t.hl=history.length,t.dh=function(){var t=!1,e=document;try{if(void 0===e.addEventListener||void 0===e.hidden)return t;void 0!==e.hidden?t=e.hidden:void 0!==e.msHidden?t=e.msHidden:void 0!==e.webkitHidden&&(t=e.webkitHidden)}catch(t){}return t}(),t.si="114729,114993,117390,114660",t.ssi="04b08754-245c-4646-ae14-f143c58282ab",function(t,e,n){try{var r=e.navigator;if(r)if("storage"in r&&"estimate"in r.storage)try{r.storage.estimate().then((function(e){t.sq=e.quota,t.su=e.usage,n()})).catch(n)}catch(t){n()}else n();else n()}catch(t){n()}}(t,n,(function(){i(t,n,(function(){e()}))}))}(a,(function(){var t;t=a,(0!==Object.keys(t).length||t.constructor!==Object)&&function(t){var e=new XMLHttpRequest;e.open("POST","https://onetag-sys.com/bdc/",!0),e.withCredentials=!0,e.send(btoa(JSON.stringify(t)))}(e(e({},a),{sid:c}))}))}catch(t){}}();}catch(e){}