Where do I get the agenda code to put on my website?
The code is on the agenda itself: in Commercial → Scheduling → Agendas, edit the agenda and, on the General tab, copy the Capture snippet. Paste that code into your site HTML, right where the agenda should appear. Visitors pick a time and book on that page, without leaving it.
Before you start
- The agenda needs Enable booking link turned on. The Capture snippet only shows with the link on, and the code shows nothing if the link is turned off later.
- You need to be able to edit the site HTML or use a custom HTML block in your site builder.
- No agenda yet? You can ask the AI to create one: see How do I ask the AI to create and configure an agenda?.
1. Copy the agenda code
- Open Commercial → Scheduling → Agendas and edit the agenda.
- On the General tab, check that Enable booking link is on.
- Under Capture snippet, click Copy.
The code has two parts: a <div> that marks where the agenda appears and a <script> that draws it. It looks like this (yours comes with your agenda's address):
Do not change the data-cx-booking value: it tells the code which agenda to show.
2. Paste the code on your site
- Site HTML: paste the whole code at the exact spot on the page where the agenda should appear, for example in a "Book a call" section.
- Site builder: add a custom HTML (or embed code) block to that section and paste the code into it.
- The agenda is drawn inside the page itself, with no iframe.
- If the page already has the Clickmax script installed (an external page connected to Clickmax), the
<div>alone is enough. - Showing the agenda in more than one place on the same page? Repeat only the
<div>; the<script>goes in once.
The agenda on your site follows the same settings as the public link: times, form, validations and the Public page tab. The only difference is the confirmation pop-up, which applies to the link only. See How do I configure the look and behavior of the schedule public page?.
3. Open the form already filled in (optional)
The same parameters that prefill the booking link work on the URL of the page where the agenda is pasted. For example, https://yoursite.com/book?name=Maria&[email protected] opens the form with name and e-mail filled in. For an international phone number, write the + as %2B. The field names are in How do I make the booking link skip the form?.
4. Test it
Open the published page, pick a time and make a test booking. The meeting shows on the attendant's agenda and the contact lands in the CRM, just like a booking through the link.
If it did not work
- Nothing shows where the code is: check that Enable booking link is on for the agenda and that the whole code was pasted, including the
<script>. - The site builder removes the
<script>or does not accept code: use the agenda link in a button or link on your site. Copy it from Commercial → Scheduling → Agendas → Copy link. - The agenda stopped showing after a change: changing the end of the agenda link also changes the code. Copy the Capture snippet again and replace the old code on your site.
- No times show: the agenda shows the attendant's free times. Check the agenda Availability tab and the attendant's hours.