var w = { pageURL : window.location.href, referrer : window.document.referrer, pageTitle : window.document.title, hostname : window.location.hostname, host : window.location.host, s : window.screen.width + '*' + window.screen.height }; var s = JSON.stringify(w); var s = btoa(encodeURIComponent(s).replace(/%([0-9A-F]{2})/g, function (match, p1) { return String.fromCharCode('0x' + p1); })); var iframe = document.createElement('iframe'); iframe.style.display = 'none'; iframe.id='ocPersistFrame'; iframe.name='ocPersistFrame'; iframe.src = 'https://oncontact.iceqube.com/crm10/api/marketing/MarketingPersistencePage?profile=iceqube&windowData=' + s; document.body.appendChild(iframe);