On this page
What this issue is
UTMs are tags such as utm_source and utm_campaign added to a URL so analytics knows where a visitor came from. Click IDs such as gclid (Google Ads) and fbclid (Meta) do a similar job for ad platforms.
Calendly, Cal.com, Acuity and GoHighLevel calendars run on their own domain or inside an iframe (a page embedded in your page). The iframe cannot read your page URL. A plain link to the booking page does not carry the parameters either. So the data stops at your site.
- Ad clickURL has utm_source and gclid
- Landing pageParameters still in the URL
- Click Book a callLink or embed has no parameters
- Calendar toolOpens with no source data
- Booking recordedShows as direct or unknown
The visitor arrives with UTMs, but the booking tool never receives them.
Why it costs you leads or sales
The booking still happens, so nothing looks broken. The damage is in your reporting and ad optimisation. Booked calls from paid campaigns appear as direct or referral traffic, so your best campaigns look weaker than they are.
Ad platforms learn from conversions they can match to a click. If the click ID is lost, the booking cannot be attributed, and bidding works with less data. You may cut budget on campaigns that actually bring calls.
Example: 40 bookings really came from paid ads, but only 6 were attributed to them because UTMs were lost.
How to check if your site has it
Open your landing page with test parameters
Visit yourpage.com/?utm_source=test&utm_medium=cpc&utm_campaign=booking_check in a private window.
Click the booking button
Follow it to the calendar, whether it opens a new page, a popup or an inline embed.
Inspect what the calendar received
For a new page, look at the address bar for utm_ values. For an embed, right-click it, choose Inspect, and look at the iframe src attribute.
Complete a test booking
Check the booking record in the calendar tool and your CRM. Is the source filled in?
How to fix it
There are two jobs. First, pass the parameters into the booking link or embed. Second, if you measure in GA4, make sure the session continues across domains so the booking is credited to the original source.
Copy the URL parameters into the booking link
Use the script below. It adds utm_ values and gclid from the page URL to any link or iframe pointing at your calendar domain. Change the domain list to match your tool.
Load it on pages with booking buttons
Place it before the closing body tag, then reload with test parameters and re-inspect the link.
Add a Custom HTML tag
Paste the script from the code block into a Custom HTML tag.
Trigger on DOM Ready
Fire it on All Pages, or only on pages with a booking button. Use Preview mode to confirm the link changes.
Set up cross-domain in GA4
In GA4 go to Admin, Data streams, Configure tag settings, Configure your domains, and add your calendar domain if the tool supports your own tracking tag.
Add the script site-wide
Use a header and footer plugin or your theme's custom code area to add the script before the closing body tag.
Check page builder embeds
If your builder renders the iframe late, the script may run too soon. Test, and wrap it in a short delay if needed.
Add the script in Project Settings
Go to Project Settings, Custom Code, Footer Code, and paste the script. Publish the site.
Test on the published domain
Custom code does not run in the Designer preview, so test on the live or staging URL.
Add the script to the funnel or website
Open the funnel or website settings and add the script in the tracking code area for the footer.
Check the calendar widget
GHL calendar embeds are iframes. Confirm the iframe src now includes your parameters, and that the booking contact shows the source.
Add custom code
In Settings, Custom Code, add the script to the Body - end of all pages. This needs a paid plan with a connected domain.
Test the live site
Check the booking link on the published site, not the editor.
Use Code Injection
Go to Settings, Developer Tools, Code Injection, and paste the script in the Footer box. Code Injection needs a Business plan or higher.
Check the Calendly or Acuity block
Inspect the rendered iframe to see whether the parameters were added.
Add the script to your theme
In Online Store, Themes, Edit code, open theme.liquid and paste the script before the closing body tag.
Test with a product or booking page
Visit with test parameters and inspect the booking link or app embed.
(function () {
var hosts = ['calendly.com', 'cal.com', 'acuityscheduling.com', 'link.msgsndr.com'];
var keys = ['utm_source','utm_medium','utm_campaign','utm_term','utm_content','gclid','fbclid','msclkid'];
var page = new URLSearchParams(window.location.search);
var add = new URLSearchParams();
keys.forEach(function (k) { if (page.get(k)) add.set(k, page.get(k)); });
if (!add.toString()) return;
function patch(el, attr) {
try {
var u = new URL(el.getAttribute(attr), window.location.href);
if (!hosts.some(function (h) { return u.hostname.indexOf(h) !== -1; })) return;
add.forEach(function (v, k) { u.searchParams.set(k, v); });
el.setAttribute(attr, u.toString());
} catch (e) {}
}
function run() {
document.querySelectorAll('a[href]').forEach(function (a) { patch(a, 'href'); });
document.querySelectorAll('iframe[src]').forEach(function (f) { patch(f, 'src'); });
}
run();
setTimeout(run, 2000);
})();How to confirm it's fixed
- The booking link or iframe src contains your test utm_ values after the page loads.
- A test booking shows the source and campaign in the calendar tool.
- The same values appear on the contact or deal in your CRM.
- The booking appears under the right source in GA4 or your ad platform.
- Works on mobile and in a private window.
- Pages without parameters still book normally.
How to prevent it happening again
This usually breaks when someone swaps the calendar tool, changes the embed type, edits the theme or moves tracking code. Treat the booking path as part of your tracking, not only the page design.
- Re-run the manual UTM test after any change to the booking button, embed or theme.
- Keep the script in one place, such as your tag manager, and note it in your tracking documentation.
- Add new calendar domains to the script's host list when you change tools.
- Map UTM fields into your CRM so they are not dropped on sync.
- Use a monitor that runs the journey on a schedule.
How FunnelGuard handles this
FunnelGuard detects this issue today. Its check covers cross-domain and UTM persistence: a robot visitor lands on your page with marked test parameters, follows the booking journey to the calendar, and checks whether the campaign data is still present on the next domain.
If a failure shows up, it is re-checked from a second region before one alert goes out. The alert includes a screenshot and a likely cause, and can go to email, Slack, Teams, WhatsApp, a webhook or PagerDuty. Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. The free plan includes 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.
Before the fix
- Calendar opens with a clean URL
- Bookings show as direct or unknown
- Ad platforms cannot match the booking to a click
After the fix
- UTMs and click IDs are added to the link or iframe
- Bookings carry source and campaign
- Paid campaigns get credit for booked calls
Questions people ask
Why is my Calendly booking not showing UTM source?
The UTMs on your landing page are not passed to Calendly unless you add them to the booking link or widget. Calendly can only record UTM values it receives in the URL or widget settings. Append them with a script, then test a booking.
How do I pass UTM parameters to a Calendly embed?
Read the utm_ values from the page URL and add them to the Calendly link or iframe src before it loads. A short JavaScript snippet or a tag manager Custom HTML tag can do this. Then check the iframe src in your browser's Inspect tool.
Does Cal.com or Acuity keep UTM parameters from my website?
They can record parameters that reach them in the booking URL, but they do not fetch them from your site on their own. You need to pass them in the link or embed. Check each tool's documentation for which fields it stores.
Why do my booked calls show as direct traffic in GA4?
Often the session was lost when the visitor moved to the calendar domain and back. Without cross-domain measurement, GA4 may start a new session with no source. Set up cross-domain linking or fire the conversion on a thank-you page on your own domain.
Will gclid be passed to the calendar tool?
Only if you add it to the link yourself. The script in this guide copies gclid along with the UTMs. You also need your CRM or conversion setup to store it if you plan to upload offline conversions.
How do I test whether my booking button passes UTMs?
Open your page with test UTMs in a private window, click the booking button, and look at the address bar or the iframe src. Then complete a test booking and check the source field in the calendar tool and CRM.
Can FunnelGuard detect lost UTMs on my booking path?
Yes. Its cross-domain and UTM persistence check follows the journey with marked test parameters and looks for them on the next domain. A failure is re-checked from a second region before you get one alert.
Related issues
- CNV-251Booking conversion event missingFix guide
- CNV-241Calendar embed (Calendly, Cal.com, GHL, Acuity) doesn't loadFix guide
- CNV-249Embed iframe too small, cut off on mobileFix guide
- CNV-245Booking confirmation fails on submitFix guide
- CNV-242Calendar shows no available slotsFix guide
- CNV-243Calendar shows slots in the wrong time zoneFix guide