Checkout Widget
This documentation will help you integrate the widget into your website.
The Checkout Widget allows users to start the booking process for an activity by selecting options and quantities, and then displaying a calendar with available dates and slots for the chosen options. This widget is embedded as an iframe on your website, making it easy to integrate and use.
Implementation
To integrate the Checkout Widget into your website, include the following HTML snippet:
Explanation of HTML Attributes
data-funbooker-widget
Description: This attribute initializes the widget. It signals the widget script to identify and load the checkout interface within this
div
element. The value must be always set to "true".Required: Yes
data-product-slug
Description: This attribute specifies the product or activity to be booked. The value should be a unique identifier (slug) that corresponds to the specific activity.
Example: "visite-balade-street-art-dans-le-marais-a-paris"
Required: Yes
data-utm-source
Description: This attribute is used for tracking the source of the traffic. This can be useful for analytics purposes, helping you understand where your bookings are coming from.
Example: "some_utm_source_exemple"
Required: No, but recommended for tracking.
Example
Here is an example of how you might implement the widget on a page dedicated to booking a street art tour in Paris:
In this example:
The
data-funbooker-widget
is always set to "true".The
data-product-slug
is set to "visite-balade-street-art-dans-le-marais-a-paris".The
data-utm-source
is set to "website_homepage" to indicate that bookings are coming from the homepage of your website.
Loading the Widget Script
Ensure you have included the widget script provided by Funbooker in your webpage. This script is responsible for loading and rendering the widget inside the div
element.
Place this script tag at the bottom of your body
tag to ensure it loads after the rest of your page content.
Last updated