Developers
Embed a booking page
Show your booking page on your own site in three styles: inline, popup on click or a floating button.
Get the code
- Sign in at dashboard.schedulecat.co and open Event Types.
- On the event you want, open the menu and choose Embed. You can also copy the link and use it with the snippet below.
- Pick a style: Inline, Pop up via element click or Floating pop-up button.
- Set the options the dialog shows, such as the size, the theme and the button text.
- Copy the snippet and paste it into your site's HTML.
The three styles
| Style | What it does | Use it for |
|---|---|---|
| Inline | The booking page shows inside a section of your page. | A Book a call page. |
| Popup via element click | A button or link of yours opens the booking page in a popup. | A Contact page or a menu button. |
| Floating button | A fixed button on every page opens a popup. | Whole-site Book now prompt. |
Pattern of the snippet
<!-- Cal embed loader: copy the exact version from the Embed dialog -->
<script type="text/javascript">
(function (C, A, L) { let p = function (a, ar) { a.q.push(ar); }; let d = C.document; C.Cal = C.Cal || function () { let cal = C.Cal; let ar = arguments; if (!cal.loaded) { cal.ns = {}; cal.q = cal.q || []; d.head.appendChild(d.createElement("script")).src = A; cal.loaded = true; } if (ar[0] === L) { const api = function () { p(api, arguments); }; const namespace = ar[1]; api.q = api.q || []; if (typeof namespace === "string") { cal.ns[namespace] = cal.ns[namespace] || api; p(cal.ns[namespace], ar); p(cal, ["initNamespace", namespace]); } else p(cal, ar); return; } p(cal, ar); }; })(window, "https://dashboard.schedulecat.co/embed/embed.js", "init");
Cal("init", { origin: "https://dashboard.schedulecat.co" });
// Inline example
Cal("inline", { elementOrSelector: "#my-cal-inline", calLink: "<username>/<event>" });
</script>
<div id="my-cal-inline" style="width:100%;height:100%;overflow:scroll"></div>Notes
- Replace <username> and <event> with your username and event slug. Your booking link is https://dashboard.schedulecat.co/<username>/<event>.
- The snippet from the Embed dialog is the source of truth. Use it over the pattern above if they differ.
- A booking page embed sets cookies the app needs. See cookies.
- The link also works with no embed at all. Just add a normal button that points to it.
Frequently asked questions
Do invitees need an account?
No. They pick a time and enter their details.
Can I embed a private or single-use link?
Embed a normal event link. Private links are meant to be shared directly.
Related
Try ScheduleCat
ScheduleCat is in private beta and free while it lasts. Invited workspaces sign in with Google.