- Chili Piper Concierge modals and *.chilipiper.com booking redirects cannot read query parameters from a prior landing page unless persisted in first-party cookies.
- Hydrate hidden form inputs both on DOMContentLoaded and immediately inside the submit handler before ChiliPiper.submit() intercepts the form.
- Configure First-Touch fields (AR_GCLID__c, UTM_Campaign__c) in Salesforce/Chili Piper as 'Do not overwrite if populated' so rescheduled meetings never wipe out paid attribution.
- Verify your live demo page for iframe and click-ID capture gaps in 1 second with our free Funnel Leak Inspector.
Never rely on Chili Piper reading window.location.search at booking time. Persist gclid, gbraid, fbclid, and UTMs in first-party cookies on the landing page, populate hidden inputs on your Webflow/Marketo/HubSpot form before Chili Piper’s submit interceptor runs, and explicitly pass those mapped fields in your ChiliPiper.submit() payload so Salesforce Lead creation receives 100% of click attribution.
1. Where Chili Piper Drops Click IDs (Failure Map)
| Leak Surface | What Breaks | Verified Fix |
|---|---|---|
Multi-Page Browsing (/lp → /demo) | URL query string drops on navigation | 90-day first-party cookie set on initial landing |
| Async GTM Field Population | ChiliPiper.submit() reads blank hidden inputs | Hydrate hidden inputs synchronously on DOM ready & submit |
| Cross-Origin Instant Booker Redirect | *.chilipiper.com iframe cannot read parent cookies | Pass lead: { ...hydratedFields } in ChiliPiper.submit() |
| Reschedule / Direct Return Visit | Blank or direct visit overwrites original GCLID | Lock First-Touch fields as non-overwritable in Salesforce |
2. Inject Persisted Click IDs Before ChiliPiper.submit() Fires
function getCookie(name) {
const match = document.cookie.match(new RegExp("(^| )" + name + "=([^;]+)"));
return match ? decodeURIComponent(match[2]) : "";
}
// Run immediately on DOM ready AND right before form submission
function hydrateChiliPiperHiddenFields(formEl) {
const fieldMap = {
AR_GCLID__c: getCookie("ar_gclid"),
AR_GBRAID__c: getCookie("ar_gbraid"),
AR_FBCLID__c: getCookie("ar_fbclid"),
UTM_Source__c: getCookie("ar_utm_source"),
UTM_Campaign__c: getCookie("ar_utm_campaign")
};
Object.entries(fieldMap).forEach(([fieldName, val]) => {
const input = formEl.querySelector(`input[name="${fieldName}"]`);
if (input && val) input.value = val;
});
}
// Explicitly include lead attributes if triggering ChiliPiper.submit() programmatically
// ChiliPiper.submit("your-subdomain", "inbound-router", { map: true, lead: { ...hydratedFields } });
3. Prevent Overwriting First-Touch Attribution & Verify Live
In Salesforce/Chili Piper field mapping, mark AR_GCLID__c and UTM_Campaign__c as “Do not overwrite if populated” for First-Touch fields (and store Latest-Touch in separate properties). Otherwise, a prospect who later clicks a direct calendar reschedule link wipes out the original $40 Google Search click.
Test your demo page live right now using our Live Funnel Leak Inspector, wire downstream uploads via our Salesforce OCT Blueprint, or inspect vendor documentation at Chili Piper Help Center and Salesforce Lead Mapping Docs.