Looking for more efficient, profitable advertising?

From enterprise brands and DTC businesses to agencies and retailers, our platform helps everyone win with commerce media.

  • World’s largest open commerce dataset
  • Industry-leading AI
  • United supply and demand
  • All-in-one solution
Trusted by over 17,000 customers
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_203406pi_126241_203406"] === 'Retailer') ? 'Retail' : leadData["126241_203406pi_126241_203406"]; // Step 2: Trigger the ChiliPiper.submit function ChiliPiper.submit("criteo", "vero-test", { trigger: "InAppButton", lead: { PersonEmail: leadData["126241_203400pi_126241_203400"], PersonFirstName: leadData["126241_203394pi_126241_203394"], PersonLastName: leadData["126241_203397pi_126241_203397"], CompanyName: leadData["126241_203403pi_126241_203403"], // replace the value with the value for Company Name "97d0652a-1786-40c2-ac1f-177761c6c314": leadData["126241_203439pi_126241_203439"], // replace the value with the value for Advertising Budget "48a142eb-1fc2-4551-8f9b-ac6cb8ec5fcc": leadData["126241_203436pi_126241_203436"], // replace the value with the value for Unique monthly visitors "5bc9d042-6cdf-4b81-8467-04e8d10607be": leadData["126241_203412pi_126241_203412"], // replace the value with the value for Country "57356c44-1d5a-4d0f-a0b1-7fc3060da088": company_type, //company type "150623cc-30ba-4d58-88e5-19618765d468": '0125J000000D8dEQAS' }, }); } }