On this page
What this issue is
When you embed Calendly (inline, popup widget or popup text), the booking screens load from calendly.com inside an iframe. An iframe is a separate page inside your page. Your tags run on the parent page and cannot see clicks or form steps inside it.
Calendly does tell your page what happens. It sends browser messages (using window.postMessage) with names such as calendly.event_type_viewed, calendly.date_and_time_selected and calendly.event_scheduled. If nothing on your site listens for them, the booking is invisible to your tracking.
Why it costs you leads or sales
A booked call is often your main conversion. If it is not recorded, Google Ads and Meta see no results from your campaigns, so smart bidding has nothing to learn from and good campaigns look like they fail. Reports show traffic but no bookings, and you may cut spend on what works.
- Ad clickVisitor lands on your page
- Calendly embedVisitor picks a time
- Booking confirmedCalendly sends a message, no listener
- GA4 / Ads / MetaNo conversion event sent
The booking happens inside the iframe and nothing passes it to your tags.
Example: 40 people book in a month, but with no listener the ad platform reports none.
How to check if your site has it
Open your booking page
Use a private window and open DevTools (F12).
Paste a temporary listener
In the Console, run: window.addEventListener('message', e => { if (e.data && e.data.event && e.data.event.indexOf('calendly.') === 0) console.log(e.data.event) })
Make a test booking
Pick a time and confirm. You should see calendly.event_scheduled logged. That only proves Calendly sends it.
Check your tags
In GA4 DebugView, Tag Assistant or Meta Pixel Helper, look for a booking event. If none appears, nothing on your site is forwarding it.
How to fix it
Listen for the message, check it comes from Calendly, then push an event. Calendly messages come from https://calendly.com, so check e.origin before acting.
window.dataLayer = window.dataLayer || [];
window.addEventListener('message', function (e) {
if (e.origin !== 'https://calendly.com') return;
if (e.data && e.data.event === 'calendly.event_scheduled') {
window.dataLayer.push({ event: 'calendly_booking' });
}
});Add a Custom HTML tag
Paste the snippet above inside script tags. Trigger it on All Pages (or only the booking page).
Create a Custom Event trigger
Event name: calendly_booking.
Attach your conversion tags
Create a GA4 Event tag, a Google Ads Conversion tag and a Meta Pixel event (such as Schedule) using that trigger.
Add the script site-wide or on the page
Use a header/footer code plugin, or a Custom HTML block on the booking page, with the snippet in script tags.
Connect it to your tags
Use GTM as above, or call gtag('event', 'generate_lead') directly inside the listener if you use gtag.js.
Add custom code
In Page settings, Custom code, Before body tag, paste the snippet in script tags.
Publish
Custom code only runs after you publish the site.
Use a Code Block or Code Injection
Add the snippet under Settings, Advanced, Code Injection (a paid plan is needed) or in a Code Block on the page.
Add custom code
Go to Settings, Custom Code, add the snippet to the booking page body. Premium plan required.
Place the listener before or after the embed
It can sit anywhere on the page. Replace dataLayer.push with your own gtag or fbq calls if you do not use GTM.
window.addEventListener('message', function (e) {
if (e.origin !== 'https://calendly.com') return;
if (e.data && e.data.event === 'calendly.event_scheduled') {
if (window.gtag) gtag('event', 'generate_lead', { method: 'calendly' });
if (window.fbq) fbq('track', 'Schedule');
}
});How to confirm it's fixed
- Make a test booking and see calendly_booking appear in the GTM preview or dataLayer.
- See the event in GA4 DebugView.
- Confirm the Google Ads conversion tag fired in Tag Assistant.
- Confirm Meta Pixel Helper shows Schedule.
- Check the event fires once per booking, not twice.
- Cancel the test booking.
How to prevent it happening again
Keep the listener in GTM so it survives theme changes. Re-test after you change the embed type, move the booking page, or switch Calendly accounts. Mark the booking as a conversion in GA4 and Google Ads so gaps show up in reports.
How FunnelGuard handles this
FunnelGuard detects this only partly. It can run your booking journey on a schedule, load the page with the Calendly embed, and check the tracking hits sent to platforms such as GA4, Google Ads and Meta. If your page stops sending those hits, you get an alert with a screenshot and a likely cause.
What it does not do is confirm that your Calendly listener code is correct, or complete a real Calendly booking inside the iframe. To cover the rest by hand, make a test booking after any change to the embed or tags and walk through the checklist above. You can start with the Free plan (1 site, 2 journeys, daily checks) or try a paid plan free for 3 days.
Questions people ask
Why is my Calendly booking not tracked in Google Analytics?
The Calendly embed runs in an iframe, so your GA4 tag on the parent page cannot see the booking. You need a listener for the calendly.event_scheduled message that sends a GA4 event when it arrives.
How do I track Calendly bookings in Google Tag Manager?
Add a Custom HTML tag with a message listener that pushes calendly_booking to the dataLayer when calendly.event_scheduled arrives. Then create a Custom Event trigger with that name and attach your GA4, Google Ads and Meta tags.
What is calendly.event_scheduled?
It is a message Calendly's embed sends to your page through window.postMessage when a visitor finishes booking. Your page can listen for it and use it as a conversion signal.
Can I track Calendly conversions with the Meta Pixel?
Yes. When the booking message arrives, call fbq('track', 'Schedule') or fire a Meta Pixel tag in GTM on your custom event.
Does the Calendly popup widget need a different setup than the inline embed?
The same message listener works for inline, popup widget and popup text embeds, since they all load Calendly in an iframe. Test each type you use.
Why does my Calendly conversion fire twice?
The listener is probably added twice, for example once in the theme and once in GTM, or on a page that reloads the script. Keep one listener and check the event count in a test booking.
Can FunnelGuard monitor my Calendly bookings?
Partly. It checks that your booking page loads and that tracking hits reach platforms like GA4, Google Ads and Meta. It does not verify your listener code or complete a real booking in the iframe, so test that by hand.
Related issues
- TRK-402Typeform/Jotform embed conversions not tracked on parent siteFix guide
- TRK-401Iframe-embedded checkout tracking not reaching parentFix guide
- TRK-398Page builder (Elementor/Webflow) custom code not publishedFix guide
- TRK-389SPA route change sends no page_viewFix guide
- TRK-390SPA sends page_view twice per routeFix guide
- TRK-391Next.js/React hydration error stops tagsFix guide