Key facts
  • 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.
Direct Fix for Chili Piper Attribution Leaks

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 SurfaceWhat BreaksVerified Fix
Multi-Page Browsing (/lp → /demo)URL query string drops on navigation90-day first-party cookie set on initial landing
Async GTM Field PopulationChiliPiper.submit() reads blank hidden inputsHydrate hidden inputs synchronously on DOM ready & submit
Cross-Origin Instant Booker Redirect*.chilipiper.com iframe cannot read parent cookiesPass lead: { ...hydratedFields } in ChiliPiper.submit()
Reschedule / Direct Return VisitBlank or direct visit overwrites original GCLIDLock 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.

Technical FAQs

Why do Chili Piper demo bookings show up as Direct Traffic in Salesforce?
When prospects click an ad on /lp/, navigate to /pricing/, and trigger a Chili Piper Concierge popup or redirect to a *.chilipiper.com booking URL, the original URL query parameters are gone unless persisted in first-party cookies and injected into your form's hidden fields prior to ChiliPiper.submit().
Why do hidden form inputs still submit blank on some Webflow + Chili Piper pages?
Because Chili Piper's script often reads form fields synchronously on click/submit (or resets fields inside multi-step Webflow forms) before an async GTM tag finishes populating them. Always run a synchronous first-party cookie hydrator directly inside the form's capture-phase submit listener.
How do we keep repeat demo bookings from overwriting the original Google Ads GCLID?
Split click capture into immutable First-Touch fields (AR_GCLID_First__c set to never overwrite in Salesforce/Chili Piper mapping) and Latest-Touch fields (AR_GCLID_Last__c) so a prospect returning via a direct calendar link never erases paid acquisition credit.