On this page
What this issue is
Calendly and Cal.com let visitors pick a time slot without leaving your page. The booking form and the confirmation screen both live inside the embedded widget. Your own page does not reload and the URL does not change.
That breaks the usual way of tracking a conversion: firing a tag on a thank-you page. If nothing listens for the booking, GA4 never receives a booking confirmation event, and any Google Ads or Meta conversion built on it stays at zero.
Both tools send a browser message (a postMessage) to your page when something happens in the widget. Your site has to catch that message and turn it into an analytics event. Calendly sends calendly.event_scheduled. Cal.com sends a bookingSuccessful action through its embed script.
Why it costs you leads or sales
Booked calls are often your most valuable conversion. If they are not recorded, you cannot see which channels, campaigns or keywords produce them.
Ad platforms learn from conversions. With no booking signal, Google Ads and Meta optimise toward weaker actions such as page views or button clicks, and bidding may drift toward visitors who never book. Reports show campaigns as underperforming when they are working.
- Ad clickVisitor lands on the booking page
- Picks a slotInside the Calendly or Cal.com embed
- Booking confirmedWidget sends a message, nothing listens
- GA4 eventNever sent
- Ads conversionNever imported
The visitor books successfully, but no event leaves the widget.
Example: 40 real bookings in a month, but only the few that land on a separate thank-you page are counted in GA4.
How to check if your site has it
Open GA4 DebugView
In GA4 go to Admin > DebugView. Use Tag Assistant or the GA debug extension so your browser appears as a debug device.
Make a test booking
Open your booking page and book a slot with a test name and email. Cancel it afterwards in Calendly or Cal.com so it does not block your calendar.
Watch for the event
After the confirmation screen appears, look in DebugView for your booking event (for example generate_lead or a custom name). If only page_view and scroll events appear, the event is missing.
Check the browser console
In developer tools, paste window.addEventListener('message', e => console.log(e.data)) and book again. You should see an object with event: 'calendly.event_scheduled' or a Cal.com booking message. If it appears but no GA4 event does, only your listener is missing.
How to fix it
The fix has two parts: catch the booking message, then push an event. Google Tag Manager is the most common route. If you do not use it, a small script on the page works too.
Add a listener tag
Create a Custom HTML tag with the Calendly or Cal.com script shown below, triggered on the pages with the embed (All Pages works if you prefer). It pushes a booking_confirmed event to the dataLayer.
Create a Custom Event trigger
Go to Triggers > New > Custom Event, and set the event name to booking_confirmed.
Create the GA4 Event tag
Add a GA4 Event tag with your Measurement ID, event name generate_lead (or booking_confirmed), and the trigger above. Add parameters such as method: calendly.
Preview and publish
Use Preview mode, make a test booking, confirm the tag fires once, then publish.
Use GTM or a header script
Install Google Tag Manager with a plugin such as Site Kit or add the container code, then follow the Google Tag Manager steps. Alternatively add the script below with a header and footer scripts plugin.
Load it only where needed
Limit the script to the booking page if your plugin supports page rules.
Add the script to the page
Open Page Settings of the booking page, scroll to Custom Code, and paste the script into Before </body> tag. Publish the site.
Check gtag exists
The script needs gtag or the dataLayer on the page. Add your GA4 or GTM code in Project Settings > Custom Code if it is missing.
Add custom code
Go to Settings > Custom Code, add a new snippet with the script, place it in Body - end, and apply it to the booking page. Custom code needs a Premium plan.
Test in a published site
Wix editor previews can behave differently, so test on the live URL.
Inject the script
Add it in Settings > Advanced > Code Injection (Footer), or in a Code Block on the booking page. Code Injection needs a Business plan or higher.
Add the listener before the closing body tag
Paste the script below on the booking page after your GA4 or GTM snippet. If you use gtag.js directly, swap the dataLayer push for a gtag('event', ...) call.
<script>
window.dataLayer = window.dataLayer || [];
// Calendly: message posted from the embedded widget
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: 'booking_confirmed', booking_tool: 'calendly' });
}
});
</script><script>
window.dataLayer = window.dataLayer || [];
// Works with the Cal.com embed snippet that defines the global Cal function
Cal('on', {
action: 'bookingSuccessful',
callback: function () {
window.dataLayer.push({ event: 'booking_confirmed', booking_tool: 'cal.com' });
}
});
</script>How to confirm it's fixed
- A test booking shows your booking event once in GA4 DebugView.
- The event carries the parameters you set, such as method or booking_tool.
- In GTM Preview the trigger fires exactly once per booking.
- The event appears in GA4 Reports > Realtime within a minute or so.
- The event is marked as a key event, and a Google Ads or Meta conversion is linked to it if you run ads.
- The test booking has been cancelled in Calendly or Cal.com.
Before
- Booking happens inside the widget
- No message is caught
- GA4 shows page views only
- Ads see no conversions
After
- Listener catches the booking message
- One booking event pushed per booking
- GA4 records a key event
- Ads can optimise toward booked calls
How to prevent it happening again
Tracking like this breaks quietly. A theme change, a new embed code, a consent banner update or a GTM edit can remove the listener, and nobody notices until the numbers drop.
- Keep the listener in GTM, not pasted into a theme file that updates can overwrite.
- Re-test with a real booking after changing the embed, theme, consent tool or GTM container.
- Document the event name and trigger so others do not rename them.
- Compare monthly bookings in Calendly or Cal.com with the GA4 event count.
- Run an automated check of the booking journey on a schedule.
How FunnelGuard handles this
FunnelGuard detects this issue today. For a booking journey, a robot visitor opens your booking page on a schedule, runs the steps a customer would take, and checks the tracking hits sent to GA4 and your ad platforms. If the expected booking event does not arrive, the check fails.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent) so you can filter it out of reports. It never bypasses CAPTCHAs or bot protection.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.
Questions people ask
Why is my Calendly booking not showing in Google Analytics 4?
The booking is confirmed inside the Calendly widget, so your page never loads a thank-you page for GA4 to record. Add a listener for the calendly.event_scheduled message and push an event to the dataLayer or gtag when it arrives.
How do I track Calendly bookings with Google Tag Manager?
Add a Custom HTML tag that listens for the calendly.event_scheduled message and pushes a booking_confirmed event to the dataLayer. Then create a Custom Event trigger for that name and a GA4 Event tag, and test it in Preview mode.
What event does Cal.com send when a booking is made?
The Cal.com embed exposes a bookingSuccessful action. You can subscribe with Cal('on', { action: 'bookingSuccessful', callback }) and push your analytics event inside the callback.
Which GA4 event name should I use for a booked call?
Many sites use generate_lead, or a custom name such as booking_confirmed. What matters is choosing one lowercase name, using it consistently and marking it as a key event in GA4.
Why does my Calendly conversion work in Preview but not on the live site?
Common causes are an unpublished GTM container, a consent banner blocking the tag on live visits, or the embed loading on a different page than the one your trigger targets. Test on the live URL with DebugView open and check consent settings.
Can I track Calendly bookings with a thank-you page redirect instead?
Yes, if your Calendly plan lets you redirect to your own confirmation page after booking, you can fire the tag there. Make sure the page cannot be refreshed to repeat the event, and avoid also using a listener, or you will double count.
How do I know if my booking event stops working later?
Compare bookings in Calendly or Cal.com with the GA4 event count regularly, or run an automated booking journey check. FunnelGuard checks the booking flow on a schedule and alerts you if the expected tracking hit is missing.
Related issues
- TRK-066Booking event missing because embed lives in cross-origin iframeFix guide
- TRK-043generate_lead not sent on form submitFix guide
- TRK-062Click events for WhatsApp / call not trackedFix guide
- TRK-050Parameter value is undefined, null or '(not set)'Fix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-046Conversion event fires on every page view of thank-you page (refresh)Fix guide