Key facts
  • Embedded Calendly and Typeform widgets run inside cross-origin <iframe> sandboxes that cannot read your landing page cookies or parent URL parameters.
  • Persist gclid, gbraid, fbclid, and UTMs into 90-day first-party cookies on initial landing so browsing from /lp to /book-demo never drops attribution.
  • Initialize Calendly programmatically via Calendly.initInlineWidget() and inject Typeform data-tf-hidden attributes dynamically before the embed mounts.
  • Pass click IDs into dedicated HubSpot Contact fields so booked demos stop arriving as Direct Traffic.
Why Embeds Break Attribution

Embedded Calendly and Typeform widgets execute inside cross-origin <iframe> sandboxes that cannot read your parent page’s URL parameters or cookies. Persist click IDs in first-party cookies on landing and initialize embeds programmatically with those cookies attached.

Embed Click-ID Decoration Reference

Embed PlatformWhy Default Embeds LeakReliable First-Party Fix
Calendly Inline / PopupStatic data-url omits persisted cookiesMount via Calendly.initInlineWidget({ utm: ... })
Typeform Live EmbedLoses UTMs/GCLID after 1 page navigationInject data-tf-hidden from cookies before script init
Webflow Native FormsHidden inputs stay blank on /contactPopulate input[name="ar_gclid"] on DOM ready

Programmatic Calendly Decoration (Webflow)

<div id="calendly-mount" style="min-width:320px;height:700px;"></div>
<script>
function getCookie(name) {
  const m = document.cookie.match(new RegExp("(^| )" + name + "=([^;]+)"));
  return m ? decodeURIComponent(m[2]) : "";
}
window.addEventListener("DOMContentLoaded", () => {
  const gclid = getCookie("ar_gclid");
  const fbclid = getCookie("ar_fbclid");
  Calendly.initInlineWidget({
    url: "https://calendly.com/your-team/demo",
    parentElement: document.getElementById("calendly-mount"),
    utm: {
      utmSource: getCookie("ar_utm_source") || "direct",
      utmMedium: getCookie("ar_utm_medium"),
      utmCampaign: getCookie("ar_utm_campaign"),
      utmContent: gclid ? "gclid:" + gclid : (fbclid ? "fbclid:" + fbclid : "")
    }
  });
});
</script>

Dynamic Typeform Hidden-Field Injection & Verification

const tfEl = document.querySelector("[data-tf-live]");
if (tfEl) {
  tfEl.setAttribute("data-tf-hidden", [
    "gclid=" + getCookie("ar_gclid"),
    "gbraid=" + getCookie("ar_gbraid"),
    "fbclid=" + getCookie("ar_fbclid"),
    "utm_campaign=" + getCookie("ar_utm_campaign")
  ].join(","));
}

Check whether your booking page leaks click IDs live in our Live Funnel Leak Inspector, then send captured HubSpot revenue downstream using our HubSpot Dynamic Deal Revenue Blueprint. Primary embed references: Calendly Developer Docs, Typeform Hidden Fields Help, and HubSpot Ad Conversion Docs.

Technical FAQs

Why do Calendly bookings on Webflow sites show up as Direct Traffic in HubSpot?
Because the default static Calendly HTML snippet loads a cross-origin calendly.com iframe without forwarding first-party cookies or prior landing-page URL parameters, leaving HubSpot with no gclid, fbclid, or UTM values on the newly created Contact.
Where should we pass gclid inside Calendly.initInlineWidget()?
Calendly natively supports utmSource, utmMedium, utmCampaign, utmContent, and utmTerm. Pass a structured key like gclid: inside utmContent (or utmTerm) and parse it cleanly into a dedicated ar_gclid HubSpot Contact property via a HubSpot workflow or webhook.
Does Typeform automatically read URL query parameters on an embedded Webflow page?
Typeform can forward current-page query parameters only if explicitly configured AND the user never navigated away from the landing page. Reading persisted first-party cookies and setting data-tf-hidden programmatically ensures click IDs survive multi-page browsing.