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.
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
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(","));
}