_satellite["_runScript1"](function(event, target, Promise) { var alloy = (window.alloy || ''); if(alloy && alloy != ''){ alloy('getIdentity') .then(function(result) { // The command succeeded. _satellite.cookie.set('alloy_ecid', result.identity.ECID,{'domain':_satellite.getVar('root_domain')}); _satellite.logger.log(result.identity.ECID); _satellite.logger.log(_satellite.cookie.get('alloy_ecid')); }) .catch(function(error) { // The command failed. // \"error\" will be an error object with additional information. _satellite.logger.warn('Failed to capture ECID'); }); } });