How do you embed Cal.com on a website?
You embed Cal.com by generating a snippet in the Cal.com app and placing it on your page. Cal.com's help center describes an embed snippet generator that produces code for an inline calendar, a pop-up opened by clicking an element, or a floating button that opens a pop-up. The snippet points at a booking link, your profile or a routing form.
The platform decides how you place that snippet and how much control you get over loading and events. Our hub guide to calls to action covers where booking belongs, and our post on whether to embed a calendar on your demo page covers when a form should come first. This guide shows how.
Platform | How you add it | Pop-up from a button | Booking events |
|---|---|---|---|
Framer | Official Cal.com component in the Insert panel | Custom code or a code component | Custom code |
Webflow | Snippet in a Code Embed element | Snippet plus data attributes on the button | Custom code in the page |
Next.js | Cal.com's React embed package | Client component calling the embed API | Listener in a client component |
Which Cal.com embed type should you use?
Use the inline embed on a dedicated booking or demo page, the pop-up on click for buttons elsewhere, and the floating button only when booking is the main action on every page.
- Inline. The calendar sits in the page layout. Best on a demo or contact page where booking is the conversion.
- Pop-up via element click. Any button opens the booker in a modal. Best for a Book a call button in the header, pricing table or footer.
- Floating button. A fixed button opens the pop-up from anywhere. Best for service businesses where booking is the only goal; it can clash with chat widgets, as our post on sticky CTAs and chat widgets explains.
- Routing form. A few questions send each visitor to the right event type or person. Best when you have several reps or call types.
How do you add Cal.com to Framer?
Add Cal.com to Framer with the official Cal.com component: open the Insert panel, find Cal.com under Forms, drag it onto the canvas and paste your booking link. Framer announced it as a native integration built with the Cal.com team, with layout and theme options so the booker can match your site.
Copy the booking link
In Cal.com, open the event type you want visitors to book and copy its public link.
Insert the component
In Framer, go to Insert, then Forms, then Cal.com, and drop it into the section where booking should happen.
Paste the link and style it
Paste the booking link into the component's settings, choose the layout and theme, and match light or dark mode to the section.
Size the frame
Give the component a fixed or minimum height on desktop and mobile so the page doesn't jump while the calendar loads.
Publish and book a test slot
Publish, make a test booking on desktop and on a phone, then cancel it from the confirmation email.
The component handles the common case. For a pop-up from a custom button, prefilled fields or a booking event that feeds your analytics, you'll need Cal.com's snippet in custom code or a small code component. Framer's Cal.com update page describes the component; check its current settings panel for any options added since. Our Framer development work covers this kind of custom code when the component isn't enough.
How do you add a Cal.com embed to Webflow?
Add a Cal.com embed to Webflow by pasting the snippet from Cal.com's embed generator into a Code Embed element where the calendar should appear. Webflow's Designer doesn't run third-party scripts in the canvas, so the calendar only appears on the published or staging site.
- Generate the snippet. In Cal.com, open the event type's Embed option, pick inline, and copy the code.
- Add a Code Embed. In Webflow, drag a Code Embed element into the section and paste the snippet. Wrap it in a div with a minimum height.
- For a pop-up, paste the pop-up snippet once in the page's custom code before the closing body tag, then add the data attributes the generator shows to your button through its custom attributes settings.
- Publish to staging and test the booking on desktop and mobile.
- Check your plan. Custom code needs a Webflow plan that allows it, so confirm on Webflow's current plan page.
How do you embed Cal.com in Next.js?
In Next.js, install Cal.com's React embed package and render its Cal component in a client component, passing your booking link. For pop-ups and events, call the package's getCalApi function, which returns the same API the plain snippet exposes. This gives you full control over when the embed loads and what happens after a booking.
A few habits keep it fast and tidy. Mark the component with use client, because the embed runs in the browser. Load it only when the visitor reaches the booking section or clicks the button, rather than on page load. Give each embed its own namespace when a page has an inline calendar and a pop-up. And use the ui instruction to match your theme: Cal.com's embed instructions document options such as hiding the event type details so only the calendar and time slots show. Our Next.js development page explains when a coded build is worth it over a visual builder.
Hypothetical example: a Next.js demo page with a form, then Cal.com
For example, suppose a startup's demo page asks for name, work email and company size, then shows a Cal.com calendar on the same page. The form submits to the site's own server route, which stores the lead.
On success, a client component renders the inline embed with the visitor's name and email passed in the embed config, so they don't type them twice. It also passes the UTM source and campaign as metadata, which Cal.com's prefill docs say arrives in the booking webhook payload. A listener on the booking success event pushes one booking_completed event to the data layer, and the page swaps the calendar for a short confirmation that says who they'll meet and what to prepare.
How do you prefill and track Cal.com bookings?
Prefill name and email through the embed's config, and track the booking with a listener on Cal.com's booking success event. Prefilling removes a step for anyone who already filled in your form; tracking the booking tells you a meeting exists, which a click on Book a call doesn't.
Cal.com's embed events documentation lists bookingSuccessfulV2 as the event fired when a booking is created, replacing the older bookingSuccessful, with a matching V2 event for reschedules. You subscribe with Cal("on", ...) and an action name, or through the namespace if your embed uses one. The docs warn that events prefixed with two underscores are internal, so don't build on them. Event names have changed before, so check the current list when you build.
- Capture UTMs on arrival and keep them for the session, then pass them as metadata so the source reaches the booking.
- Push one event on booking success to your data layer and send it to analytics and ad platforms from your tag manager.
- Don't count test bookings. Cal.com has separate dry-run events, so keep them out of your conversion tag.
- Design the moment after. Our guide to thank-you pages covers what to show once someone has booked.
How should a Cal.com embed look on the page?
A Cal.com embed should look like part of the page: matched to your theme, sized so nothing jumps while it loads, and introduced by copy that says what the call is for. The embed is a form, so the same rules apply as for any landing page form.
- Reserve the height. An embed that grows after loading shifts the content below it. web.dev counts a Cumulative Layout Shift of 0.1 or less as good, and an unsized iframe is an easy way to miss it.
- Say what happens on the call. A heading such as "Book a 30-minute walkthrough with a product specialist" beats a bare calendar. Our CTA button copy examples help with the button that opens it.
- Keep one booking action per screen. A calendar next to a trial button splits attention; our guide to how many CTAs a page should have covers primary and secondary actions.
- Test on a phone. Check the date picker, time slots and form fit a narrow screen without sideways scrolling.
- Cover privacy. The embed sets its own cookies and handles personal data, so name Cal.com in your privacy policy and consent setup.
Which Cal.com setup should you choose?
Use Framer's built-in component if you want a working calendar today, a Webflow Code Embed if your site is on Webflow, and Cal.com's React package if you're on Next.js or need prefilled fields and booking events on every platform. The more the booking matters to your pipeline, the more the tracking and loading control are worth.
