Contact Us

Tell us a little about yourself and we’ll get right back to you

 

window.addEventListener("message", receiveMessage, false); function receiveMessage(event) { // Form data ready, update leadObj if (event.data && event.data.message === "PARDOT_DATA_READY" && event.data.data) { leadObj = event.data.data; // Update leadObj } // Form was submitted and validated, call ChiliPiper if (event.data && event.data.message === "PARDOT_FORM_SUCCESS") { let queryString1 = event.data.data; // Step 1: Parse the query string into a JSON object const leadData = {}; const params = queryString1.substring(1).split("&"); params.forEach(param => { const [key, value] = param.split("="); leadData[key] = decodeURIComponent(value.replaceAll("+", " ") || ""); }); const company_type = (leadData["126241_202755pi_126241_202755"] === 'Retailer') ? 'Retail' : leadData["126241_202755pi_126241_202755"]; // Step 2: Trigger the ChiliPiper.submit function ChiliPiper.submit("criteo", "vero-test", { trigger: "InAppButton", lead: { PersonEmail: leadData["126241_202743pi_126241_202743"], PersonFirstName: leadData["126241_202737pi_126241_202737"], PersonLastName: leadData["126241_202740pi_126241_202740"], CompanyName: leadData["126241_202746pi_126241_202746"], // replace the value with the value for Company Name "97d0652a-1786-40c2-ac1f-177761c6c314": leadData["126241_202830pi_126241_202830"], // replace the value with the value for Advertising Budget "48a142eb-1fc2-4551-8f9b-ac6cb8ec5fcc": leadData["126241_202761pi_126241_202761"], // replace the value with the value for Unique monthly visitors "5bc9d042-6cdf-4b81-8467-04e8d10607be": leadData["126241_202752pi_126241_202752"], // replace the value with the value for Country "57356c44-1d5a-4d0f-a0b1-7fc3060da088": company_type, //company type "150623cc-30ba-4d58-88e5-19618765d468": '0125J000000D8dEQAS' }, }); } }