---
title: "Calendly · Nuxt Scripts"
description: "Embed Calendly bookings in your Nuxt app with inline, popup, and badge widgets."
canonical_url: "https://scripts.nuxt.com/scripts/calendly"
meta:
  "og:description": "Embed Calendly bookings in your Nuxt app with inline, popup, and badge widgets."
  "og:image": "https://scripts.nuxt.com/_og/s/o_eaaf03ee2b237cfb.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Calendly · Nuxt Scripts"
  "twitter:image": "https://scripts.nuxt.com/_og/s/o_eaaf03ee2b237cfb.png"
---

> Index of every page on this site: [llms.txt](https://scripts.nuxt.com/llms.txt)

**Scripts**

# **Calendly**

[Copy for LLMs](https://scripts.nuxt.com/scripts/calendly.md)

[**Calendly**](https://calendly.com) provides booking pages and embeddable scheduling widgets. Its booking flow can render inline, in a popup, or behind a floating badge button.

Use [`**useScriptCalendly()**`](https://scripts.nuxt.com/scripts/calendly) for popup and badge widgets. For an inline booking flow, use the headless [`**<ScriptCalendlyInlineWidget>**`](https://scripts.nuxt.com/scripts/calendly) component.

**Calendly**

[**View source **](https://github.com/nuxt/scripts/blob/main/packages/script/src/runtime/registry/calendly.ts)

## Nuxt Config Setup

Add this to your `**nuxt.config.ts**` to load Calendly globally. Alternatively you can use the **useScriptCalendly** composable for more control.

```
export default defineNuxtConfig({
  scripts: {
    registry: {
      calendly: {
        trigger: 'onNuxtReady',
      }
    }
  }
})
```

This config automatically enables **first-party mode ** (bundle + proxy). See below to customise.

## useScriptCalendly()

The `**useScriptCalendly**` composable lets you have fine-grain control over when and how Calendly is loaded on your site.

```
const { proxy } = useScriptCalendly()
```

Please follow the [**Registry Scripts **](https://scripts.nuxt.com/docs/guides/registry-scripts) guide to learn more about advanced usage.

## First-Party Mode: Privacy Focused Proxy

No extra config needed. The script is bundled from your domain (faster loads, no extra DNS lookup) and runtime requests are reverse-proxied through your server with automatic anonymisation (user IPs stay hidden from Calendly, works with ad blockers). [**Learn more. **](https://scripts.nuxt.com/docs/guides/first-party)

**Mode**

Bundle Proxy Partytown

**Privacy**

User IP addresses are anonymised. Other request data passes through.

```
export default defineNuxtConfig({
  scripts: {
    // ✅ First-party mode: bundled + proxied
    registry: {
      calendly: {
        trigger: 'onNuxtReady',
      },
    },
  },
})
```

## Example

Using Calendly in a component with the proxy to send events .

ConversionButton.vue

```
<script setup lang="ts">
const { proxy } = useScriptCalendly()

// noop in development, ssr
// just works in production, client
function handleAction() {
  // use proxy methods here
}
</script>

<template>
  <div>
    <button @click="handleAction">
      Send Event
    </button>
  </div>
</template>
```

The generated schema also lists `**url**`, `**prefill**`, `**utm**`, and `**pageSettings**`, but the current composable does not apply those top-level values to a widget. Pass them to an initializer as shown below, or use `**<ScriptCalendlyInlineWidget>**`.

Defaults:

- **Trigger: `**onNuxtReady**`** Direct composable calls load the script when the Nuxt app is ready. The inline component uses an element trigger instead.
- **Stylesheet: Inline** The widget stylesheet (and its close-icon SVG) is inlined on first use, so rendering it does not request those assets from `**assets.calendly.com**`.

The asset proxy covers `**assets.calendly.com**` only. The booking iframe still connects directly to `**calendly.com**`.

Use the proxy for void calls. Use `**onLoaded**` when you need the loaded `**Calendly**` global or a stable DOM reference.

```ts
const { proxy } = useScriptCalendly()
function openBooking() {
  proxy.Calendly.initPopupWidget({
    url: 'https://calendly.com/your-name/30min',
  })
}
```

## [`**<ScriptCalendlyInlineWidget>**`](https://scripts.nuxt.com/scripts/calendly)

The component mounts Calendly's inline booking flow inside a host element you control.

It waits until the host element enters the viewport before loading the widget script. The default [**element trigger**](https://scripts.nuxt.com/docs/guides/script-triggers#element-event-triggers) is `**'visible'**`.

```vue
<script setup lang="ts">
const ready = ref(false)
</script>

<template>
  <ScriptCalendlyInlineWidget
    url="https://calendly.com/your-name/30min"
    @ready="ready = true"
  />
</template>
```

### Above-the-fold loading

For an above-the-fold widget, set `**above-the-fold**` and switch the trigger to hydration. This also adds a preconnect to `**calendly.com**`.

```vue
<ScriptCalendlyInlineWidget
  url="https://calendly.com/your-name/30min"
  above-the-fold
  trigger="onNuxtReady"
/>
```

### Prefill, UTM, and page settings

```vue
<ScriptCalendlyInlineWidget
  url="https://calendly.com/your-name/30min"
  :prefill="{ name: 'Ada Lovelace', email: 'ada@example.com' }"
  :utm="{ utmSource: 'website', utmMedium: 'cta', utmCampaign: 'launch' }"
  :page-settings="{ hideEventTypeDetails: true, hideGdprBanner: true }"
/>
```

### Slots

The component exposes `**loading**`, `**awaitingLoad**`, and `**error**` slots for placeholder UX while the script trigger waits or the script load fails. The default `**loading**` slot renders an accessible spinner.

## Popup and badge widgets

Popup and badge widgets have no host element. Open them through the composable:

```ts
const { proxy } = useScriptCalendly()
function open() {
  proxy.Calendly.initPopupWidget({
    url: 'https://calendly.com/your-name/30min',
  })
}
```

## Prefilling invitee details and UTM parameters

All four widget initializers (`**initInlineWidget**`, `**initPopupWidget**`, `**initBadgeWidget**`, `**initPopupWidgetWithText**`) accept `**prefill**` and `**utm**` options to prepopulate the booking form and tag the booking with marketing attribution. Calendly's [**UTM guide**](https://help.calendly.com/hc/en-us/articles/4406950779799?locale=en-us) covers the JavaScript option names and the supported embed types.

```vue
<script setup lang="ts">
const { proxy } = useScriptCalendly()

function bookFromCampaign(user: { name: string, email: string }) {
  proxy.Calendly.initPopupWidget({
    url: 'https://calendly.com/your-name/30min',
    prefill: {
      name: user.name,
      email: user.email,
    },
    utm: {
      utmSource: 'website',
      utmMedium: 'cta',
      utmCampaign: 'launch',
    },
  })
}
</script>
```

`**url**``string`

The Calendly event URL to embed. Required for inline, popup, and badge widgets when called via the composable.

`**prefill**``object`

Pre-fill invitee fields on the booking form.

`**utm**``object`

UTM parameters appended to the booking URL for marketing attribution.

`**pageSettings**``object`

Theme and layout overrides applied to the booking page.

`**parentElement**``string`

CSS selector for the element that hosts the inline widget. Required when the widget is initialised inline; the element should have a minimum height of around 700px so the booking iframe is fully visible.

[Edit this page](https://github.com/nuxt/scripts/edit/main/docs/content/calendly.md)

[Markdown For LLMs](https://scripts.nuxt.com/scripts/calendly.md)

[**Bluesky Embed** Server-rendered Bluesky embeds without browser requests to Bluesky.](https://scripts.nuxt.com/scripts/bluesky-embed) [**Carbon Ads** Show carbon ads in your Nuxt app using a Vue component.](https://scripts.nuxt.com/scripts/carbon-ads)

**On this page **

- [\<ScriptCalendlyInlineWidget>](#scriptcalendlyinlinewidget)
- [Popup and badge widgets](#popup-and-badge-widgets)
- [Prefilling invitee details and UTM parameters](#prefilling-invitee-details-and-utm-parameters)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scripts.nuxt.com/#website","@type":"WebSite","description":"Nuxt Scripts lets you load third-party scripts with better performance, privacy, security and DX. It includes many popular third-parties out of the box.","name":"Nuxt Scripts","url":"https://scripts.nuxt.com/","publisher":{"@id":"https://scripts.nuxt.com/#identity"}},{"@id":"https://scripts.nuxt.com/scripts/calendly#webpage","@type":"WebPage","description":"Embed Calendly bookings in your Nuxt app with inline, popup, and badge widgets.","name":"Calendly","url":"https://scripts.nuxt.com/scripts/calendly","breadcrumb":{"@id":"https://scripts.nuxt.com/scripts/calendly#breadcrumb"},"isPartOf":{"@id":"https://scripts.nuxt.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://scripts.nuxt.com/scripts/calendly"]}],"primaryImageOfPage":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/#identity","@type":"Organization","name":"Nuxt Scripts","url":"https://scripts.nuxt.com","logo":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/scripts/calendly#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Nuxt Scripts","item":"https://scripts.nuxt.com/","position":1},{"@type":"ListItem","name":"Scripts","item":"https://scripts.nuxt.com/scripts","position":2},{"@type":"ListItem","name":"Calendly","item":"https://scripts.nuxt.com/scripts/calendly","position":3}]},{"@id":"https://scripts.nuxt.com/#logo","@type":"ImageObject","caption":"Nuxt Scripts","contentUrl":"https://scripts.nuxt.com/logo.svg","inLanguage":"en","url":"https://scripts.nuxt.com/logo.svg"}]}
```

## Sitemap

See the full [sitemap](https://scripts.nuxt.com/sitemap.md) for all pages.
