The widget runs your routing's booking form inside your own website, so visitors book without leaving the page. It works on any site where you can add a script. For the general idea, see inline booking widget.
Find your routing ID
- Open the routing in Ripcord.
- Find its JavaScript embed section and copy the Routing ID. It is a code of letters and numbers, not the number in the routing's page address.
Replace YOUR_ROUTING_ID in the examples below with that code.
Popup on a button
- Give the button that should open booking a class or an id.
- Load the widget script on the page.
- Create the widget with that selector and your routing ID.
<button class="book-demo">Book a demo</button>
<script src="https://cdn.jsdelivr.net/npm/@ripcord.io/meeting@2"></script>
<script>
new ripcord.Widget({
el: ".book-demo",
routingId: "YOUR_ROUTING_ID"
});
</script>
A click on the button opens the booking form in a popup. If you leave out el, you can open and close the popup from your own code with open() and close().
Inline on the page
Use this on a page whose main job is booking, such as a demo page. The form renders inside the container you choose.
<div id="booking-inline"></div>
<script src="https://cdn.jsdelivr.net/npm/@ripcord.io/meeting@2"></script>
<script>
const booking = new ripcord.Inline({
el: "#booking-inline",
routingId: "YOUR_ROUTING_ID"
});
booking.initialize();
</script>
Sell a specific product
The routing already decides the product. If one routing serves several products, add productId with the product's ID to either example. New deals from that widget are then created on that product, whatever the routing would pick.
UTMs carried into the booking
When the widget loads, it reads utm_source, utm_medium, utm_campaign, utm_term and utm_content from the page's URL and sends them with the booking. There is nothing to switch on.
- Tag every link that points to the page with the widget, for example
https://www.example.com/book?utm_source=facebook&utm_medium=paid&utm_campaign=spring. - Tag routing links (
app.ripcord.io/l/...) the same way. They take the same five values. - Use the values in your routing's outcomes if some sources should go to a different person or to the recorded demo. See Routings.
UTMs are saved on the contact. If the same email books again with different UTMs, the newer values replace the older ones. Read more about UTM parameters and lead source attribution.
Booking from your own form
Each routing also shows a booking endpoint for developers who want to send bookings from their own form or server. It takes the contact's details, a day and a part of the day, such as Tuesday afternoon, and Ripcord picks the open slot. It accepts the same UTM values.
Check it
- Open your page with test UTMs in the address.
- Open the widget and confirm your routing's questions appear after the email step.
- Make one test booking with a personal email address, then cancel it.