- 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.
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 Platform | Why Default Embeds Leak | Reliable First-Party Fix |
|---|---|---|
| Calendly Inline / Popup | Static data-url omits persisted cookies | Mount via Calendly.initInlineWidget({ utm: ... }) |
| Typeform Live Embed | Loses UTMs/GCLID after 1 page navigation | Inject data-tf-hidden from cookies before script init |
| Webflow Native Forms | Hidden inputs stay blank on /contact | Populate 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.