All posts
Landing pages & CRO

How to Embed Cal.com on Framer, Webflow and Next.js

How to set up a Cal.com embed on Framer, Webflow and Next.js: inline and pop-up booking, prefilled fields, booking events tracked as conversions, layout tips.

By Mehdi Hassan9 min read

The short answer

A Cal.com embed puts your booking calendar on your own site. Generate the snippet from the event type's Embed option in Cal.com, then use Framer's built-in Cal.com component, paste the snippet into a Webflow Code Embed, or install Cal.com's React package in Next.js. Track the booking event, not the button click.

Key takeaways

  • Cal.com offers inline, pop-up on click and floating-button embeds, all generated from the event type.
  • Framer has an official Cal.com component under Forms in the Insert panel.
  • In Webflow, paste the snippet into a Code Embed and publish to see it working.
  • In Next.js, use Cal.com's React embed package in a client component for full control.
  • Fire your conversion on Cal.com's booking success event and reserve the calendar's height.

Part of Call to Action Guide: How to Write, Place and Design CTAs That Get Clicked

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.

  1. Copy the booking link

    In Cal.com, open the event type you want visitors to book and copy its public link.

  2. Insert the component

    In Framer, go to Insert, then Forms, then Cal.com, and drop it into the section where booking should happen.

  3. 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.

  4. 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.

  5. 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.

  1. Generate the snippet. In Cal.com, open the event type's Embed option, pick inline, and copy the code.
  2. 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.
  3. 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.
  4. Publish to staging and test the booking on desktop and mobile.
  5. 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.

Frequently asked questions

Is the Cal.com embed free to use?
Cal.com's embed options are part of the product, and the Cal.com app store lists its Framer app as free. Some features you might want inside the embed, such as routing forms or team scheduling, depend on your Cal.com plan, so check Cal.com's current pricing page. Your website platform may also need a plan that allows custom code, which applies to Webflow.
Can I embed more than one Cal.com calendar on one page?
Yes. Give each embed its own namespace in the snippet or in the React component, and load the embed script only once per page. Without separate namespaces, buttons and listeners can attach to the wrong calendar. Test each one by booking a slot, and make sure each event type's booking event fires your tracking with a label you can tell apart.
Does a Cal.com embed slow down my page?
It can, because it loads a third-party script and an iframe. Keep the impact small by loading the embed only when the visitor scrolls to it or clicks a button, reserving the calendar's height so the layout doesn't shift, and loading the script once per page. On Next.js you control this directly; on Framer and Webflow, place embeds below the first screen where possible.
Can I use Cal.com with a self-hosted instance?
Yes. Cal.com is open source and can be self-hosted, and its help center says the embed snippets from the generator update for the instance you're using. Copy the snippet from your own instance so it points at the right domain, then test bookings, emails and events end to end, because self-hosted setups can differ from the hosted product.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Landing page, $6,000.

One conversion-focused page, designed by us, developed in Next.js and animated. $6,000, one-time, fixed price. Book a free 30-minute call to see if it fits.

Schedule Call