function piResponse() { piSetCookie('visitor_id375012', '1520955189', 3650); piSetCookie('visitor_id375012-hash', '00e46b7b02b5b677ef72f7a6741f50ecede7acfac1222ad1f00473c229eeb5efa8f5b3d86900fd8373293c151e3845b79c60f464', 3650); // Get script name const pdjsScriptName = typeof window.getPardotUrl === 'function' ? 'pd.js' : 'pi.js'; // Cache buster if (typeof piVersion === 'undefined' || piVersion !== '1.0.0') { // Get script domain const pdjsDomain = (document.location.protocol === 'https:') ? 'https://pi.pardot.com' : 'http://cdn.pardot.com'; // Create iframe const pdjsIframe = document.createElement('iframe'); pdjsIframe.name = pdjsIframe.id = 'ifr_' + Date.now(); pdjsIframe.width = pdjsIframe.height = 0; document.body.appendChild(pdjsIframe); // Create form const pdjsForm = document.createElement('form'); pdjsForm.method = "POST"; pdjsForm.target = pdjsIframe.name; pdjsForm.action = pdjsDomain + '/' + pdjsScriptName; document.body.appendChild(pdjsForm); // Request script pdjsForm.submit(); } } piResponse();