What we do
Tools
Industries
Department
How we workLet's talk →
Home/Calendly/Calendly Embed
Calendly Embed

Calendly Embed Code: Choosing the Type, Prefilling It and Tracking Each Booking

Putting a Calendly embed on a site takes a few minutes: copy the snippet, paste it into a custom code block, publish. The questions come after. Which of the three embed types suits this page, can the form already know the visitor's name, and why does the analytics show page views but no bookings?

Which Calendly embed suits the page

Where booking sits on the page Use this What to watch
The page exists to book a call Inline embed. The full calendar renders in the page. Turn on auto-resize so it doesn't scroll inside itself, but only on one embed per page, and avoid dropdown questions while it's on.
Booking is one option on a busy page Popup widget. A floating button opens the calendar in an overlay. The button sits in a corner. Check it doesn't land on top of a chat bubble or cookie notice.
A link inside body copy, a blog post or a pricing table Popup text. Plain text that opens the same overlay. It still loads Calendly's script, so add it once per page, not once per link.
WordPress Paste the embed into a Custom HTML block. On WordPress.com, the plan has to allow custom HTML or plugins. Third-party Calendly plugins exist, but the HTML block is what Calendly documents.
Squarespace, Wix or another site builder The same snippet in the builder's custom code or embed block. Some builders wrap code in their own iframe, which can stop auto-resize and the booking events below.
Print, signage or a trade show stand A QR code from the Calendly mobile app's share options. Add UTMs to the link before you make the code, or every scan looks like direct traffic.

An embed that knows who's booking and where they came from

  1. 1

    Start from the standard snippet

    The inline version is a calendly-inline-widget div with your link in data-url, plus Calendly's widget script. Add data-resize="true" for auto-resize.

    Watch for: a plain iframe is the one option that can't prefill or auto-resize. Use the snippet or the JavaScript embed instead.

  2. 2

    Prefill what the site already knows

    For a signed-in visitor or someone coming from a form, switch to the advanced JavaScript embed, Calendly.initInlineWidget, and pass a prefill object with name, email and customAnswers (a1 to a10). In a plain link, the same works as ?name=…&email=…&a1=….

  3. 3

    Hand it the campaign

    The embed doesn't read UTMs from the page address by itself. Append them to data-url, or pass a utm object (utmSource, utmMedium, utmCampaign, utmContent, utmTerm), which replaces any in the URL. A few lines of script can copy the page's UTMs into it, so one embed serves every campaign.

    Watch for: Calendly takes only those five plus salesforce_uuid, each under 255 characters. A gclid or fbclid is dropped.

  4. 4

    Listen for the booking

    The embed posts messages to your page: calendly.profile_page_viewed, calendly.event_type_viewed, calendly.date_and_time_selected and calendly.event_scheduled. Add a message listener, check the origin is https://calendly.com, and fire your conversion on event_scheduled only.

  5. 5

    Get the details on your server

    The event_scheduled payload carries links to the scheduled event and the invitee, not their name or answers. A server holding your Calendly token reads the invitee from the API and attaches the details. Keep that token out of the browser.

Bookings your analytics never gives credit for

Ad clicks book, and the ad account sees nothing

How you'll know: Google Ads or Meta show clicks to the booking page and no conversions, though the calendar's full.

Fix: The click ID never reached Calendly, because it isn't a parameter Calendly keeps. Store it when the visitor lands, send it with the invitee link when event_scheduled fires, and report the conversion from your server.

Conversions that fire on a click, not a booking

How you'll know: GA4 shows more bookings than Calendly does.

Fix: The tag is listening to date_and_time_selected or every Calendly message. Filter on calendly.event_scheduled.

Every booking looks like direct traffic

How you'll know: Calendly's tracking filter shows no UTM values, though the campaigns use them.

Fix: The UTMs are on the page address, not on the embed. Pass them through data-url or the utm object.

Two cookie banners at once

How you'll know: Visitors accept cookies on your site, then meet Calendly's own banner inside the embed.

Fix: The embed has an option to hide it. Only use it if your own consent banner already covers Calendly.

Twenty location pages, one embed that picks the right calendar

One embed on one page is a five-minute job. A clinic group, franchise or agency with a page per location or service ends up with a copy on each, and sooner or later the Phoenix page books into the Tucson calendar, because someone pasted the wrong snippet during a redesign.

n-frames replaces the copies with one embed that reads which location or service the page is about and loads the matching event type, so a new page books correctly the day it's published. We add the parts around it too: the script that carries UTMs and click IDs, the server step that turns each calendly.event_scheduled into a named booking with its source, and the conversion that reaches GA4 or the ad account. Where the booking also has to land in a CRM, the Calendly CRM integration page covers that end.

Questions people ask

What's the difference between an inline embed and a popup widget in Calendly?

An inline embed shows the whole calendar inside the page. A popup widget is a floating button that opens the same calendar in an overlay, which suits pages where booking is secondary.

Can I embed Calendly on WordPress?

Yes. Paste the embed code into a Custom HTML block, which is the method Calendly documents. On WordPress.com you need a plan that allows custom HTML or plugins, and third-party Calendly plugins are another route.

Can I generate a QR code for Calendly?

Yes. The Calendly mobile app's share options include a QR code for your link, handy for business cards, flyers and signs. Add UTMs to the link first if you want scans tracked separately.

Does the Calendly embed work on site builders other than WordPress?

Generally yes. It's a standard HTML and JavaScript snippet, so it works on Squarespace, Wix and most builders that accept custom code. Test auto-resize and the booking events on the live page.

Can I pre-fill the name and email in a Calendly embed?

Yes, with the advanced JavaScript embed's prefill option, which also takes answers to custom questions. A plain iframe can't do it.

How do I track Calendly embed bookings in Google Analytics?

Listen for the calendly.event_scheduled message on your page and send a GA4 event when it arrives. n-frames builds the server step that adds the source and click ID, so the booking can count in your ad accounts too.

Let's talk

Tell us the one thing your team does manually that eats up time. We read every message and reply within a day.