Add booking to your website
Three ways to let clients book from your site or social profiles: a plain link, your own button, or a booking form inside a page. Where to paste the code in WordPress, Wix, Squarespace, Webflow, Tilda and others, and how to open a specific location, service or flow.
7 min read · Updated November 22, 2026
On this page
Your iBooker booking page works on its own, and it can also be added to any website. Admin → Embed widget builds the link or code for you in three steps: choose how clients should book, choose what it opens, then copy and paste.
Choose a method#
Step 1, “How should clients book?”, offers three methods. You can use several at once; all book into the same Square account.
| Method | What the client sees | Best for |
|---|---|---|
| A link (Easiest) | Your booking page opens in their browser, full screen. | Instagram bio, WhatsApp, Google Business Profile, email, QR codes. No website needed. |
| Your own button (Recommended) | A booking panel slides in over your page when they click a button or menu link you already have. | Any website: “Book now” buttons, menu items, links in text. |
| Inside a page | The booking form sits directly in the page. | A dedicated “Book” page, or a section on your home page. |
Method 1: A link#
In step 3, “Copy your link”, press Copy, or Open to check it in a new tab.
https://ibooker.online/your-slugIf you choose something in step 2 (“Choose what it opens”), the link opens exactly that:
| Link | Opens |
|---|---|
| https://ibooker.online/your-slug | The start of your booking page. |
| https://ibooker.online/your-slug/location/LOCATION_ID/services | One location's service list. The location question is skipped. |
| https://ibooker.online/your-slug?service=SERVICE_ID | One service's details, ready to add. |
| https://ibooker.online/your-slug?f=FLOW_ID | A custom flow (see Custom flows). |
The parts combine, for example /location/LOCATION_ID/services?f=FLOW_ID&service=SERVICE_ID. You don't need to look up IDs: pick from the Location, Flow and Service dropdowns and the tab writes the link.
Method 2: Your own button#
This keeps clients on your site: any button, menu item or text link opens booking in a side panel over your page. Setup has two parts, both in step 3 (“Copy and paste”).
A. Add this once to your website's header
<script async src="https://ibooker.online/embed.js" data-ibooker="your-slug" data-mode="trigger"></script>It adds nothing visible; it only lets your buttons open booking. Skip this if the script is already on the page from an earlier setup.
B. Set your button's link to this
#ibooker?slug=your-slugPaste it into the link (URL) field of any buttons or menu items. Choices from step 2 are added, for example #ibooker?slug=your-slug&f=FLOW_ID&location=LOCATION_ID&service=SERVICE_ID. The slug keeps the link pointing at this project if another iBooker project is added to the page later.
For developers
Instead of the #ibooker link, mark any element with data-ibooker-open (optionally with data-location, data-service and data-flow), or open and close booking from JavaScript:
<button data-ibooker-open data-service="SERVICE_ID">Book a haircut</button>
window.iBooker.open("your-slug", { flow: "FLOW_ID", location: "LOCATION_ID", service: "SERVICE_ID" });
window.iBooker.close();The JavaScript line for your current choices is under “For developers: open it from JavaScript” in step 3.
How the panel behaves
- It slides in from the right (full screen on phones) and your page stops scrolling behind it.
- Clients close it with the ×, the Esc key, or by clicking beside it. On phones and tablets, Back closes it; on desktop, Back works as usual.
- Progress (cart, chosen time) is kept while the client stays on the same page. Buttons for different services at the same location share one cart.
- If the booking page doesn't load (a very slow connection, a blocker), the panel offers “Open the booking page” in a new tab.
Opening booking from a shared link
A page with the script that loads with #ibooker at the end of its address (for example https://yoursite.com/services#ibooker, or with the parameters above) opens the booking panel automatically.
Method 3: Inside a page#
Paste the code exactly where the form should appear:
<div data-ibooker-inline="your-slug" data-height="720" style="width:100%"></div>
<script async src="https://ibooker.online/embed.js"></script>Step 2 (“Make it yours”) sets the size:
| Setting | Options |
|---|---|
| Width | Fill the page (100% of the space it's placed in), or Fixed (pixels, at least 280). A fixed width never grows wider than the space available, so it still fits on phones. |
| Height | Fixed (pixels, at least 400; 720 by default), or Full screen: exactly as tall as the visitor's screen, best on a page that's only for booking. |
“Open one location or flow (optional)” adds data-location or data-flow to the code. The inline form can't open a single service; use a link or your own button for that.
Where to paste the code#
Under each snippet, “Where do I paste this?” shows the steps for your site builder. Header code (Your own button) goes where it appears on every page; page code (Inside a page) goes into one page.
| Site builder | Header code (every page) | Page code (one page) |
|---|---|---|
| WordPress | Install the free WPCode plugin → Code Snippets → Header & Footer → paste into Header → Save. | Edit the page → add a Custom HTML block where the form should go → paste → Update. |
| Wix | Settings → Custom Code → Add Custom Code → paste → Place Code in: Head → Apply. | Add (+) → Embed Code → Embed HTML → paste the code → Update, then size the box. |
| Squarespace | Open Code Injection (search “Code injection” in settings) → paste into Header → Save. | Edit the page → add a Code block where the form should go → paste → Save. Your plan must allow JavaScript. |
| Webflow | Site settings → Custom code → paste into Head code → Save → Publish. | Add a Code Embed element where the form should go → paste → Save & Close → Publish. |
| Tilda | Site Settings → More → HTML code for the HEAD section → paste → Save → republish the pages. | Add block → Other → T123 “HTML code” → paste → Save → Publish. |
| Other / HTML | Paste it just before </head> in your site's template. | Paste it into the page's HTML, where the form should appear. |
Script and loading#
- One copy of the script per page powers the inline form and all buttons. With the header script in place, an inline form only needs the div line.
- The script loads asynchronously. With Your own button, the booking page loads only when opened; an inline form loads when the visitor scrolls near it.
- A view is counted in Admin → Appointments only when the booking page itself loads.
Opening a specific location, service or flow#
- Location (when you have more than one): skips the location question.
- Flow (once you have saved flows): see Custom flows.
- Service (link and Your own button only): opens that service's details.
- A service or flow link without a location shows only the locations Square says offer it, or goes straight there if only one does.
Several projects on one page#
Several iBooker projects (for example, one per brand on the same Square account) can share a page:
- Add one header script per project, each with its own data-ibooker="slug".
- Keep the slug in every button link (#ibooker?slug=other-slug); a link without one opens the first project. For data-ibooker-open buttons, use data-ibooker-open="other-slug".
- Each inline div names its project in data-ibooker-inline.
Analytics and language#
- Campaign tags and ad click IDs on your page are passed into the booking form, and your Admin → Analytics tags fire on your own page, where their cookies work. If your consent tool must control every tag, or your GTM already forwards iBooker's events, add data-analytics="off" to the script tag. See How conversion tracking works.
- With your project's language set to Auto, the booking form can follow your page's language (the html tag's lang attribute).
Troubleshooting#
- The button does nothing: check that the header script is on that page (some builders, such as Tilda, need the site republished) and that the link is exactly #ibooker or starts with #ibooker?.
- Squarespace: the code block needs a plan that allows JavaScript.
- The inline form is cut off: increase the height in step 2, or use Full screen.
Something unclear or missing? Ask support — we keep these pages up to date.