Skip to main content

Integrate the booking widget into your website

This article outlines how to integrate the Smeetz Booking Widget into your website.

Updated this week

1. Prerequisites

1.1. Having a secure site

Your website must be secured with HTTPS. A green or grey padlock followed by the mention "https" allows you to determine if your site is secure.

If your site is not in HTTPS, you can switch your site to HTTPS by following this tutorial.

1.2 Domain name

If your website domain is wordpress.com, wix.com, etc. you will not be able to add the booking widget Smeetz to your website. These hosts do not allow users to add JavaScript code to sites if they do not have their own domain name.

Your site may have been created with Wordpress or Wix. However, you must be the owner of your domain name to add the Smeetz booking widget.

2. Installing the Smeetz widget

Follow the steps below to install the Smeetz widget, depending on your web provider.

Remember to create and configure this widget beforehand from your Smeetz account (See: Create a booking widget).

2.1 Integrating the Smeetz Widget on your website

Smeetz offers two main ways to integrate its widget on your website: Standard Embed and Advanced Integration. Each has its own behavior and use cases.

A. Standard Embed (Simple Integration)

  • Uses a <div> that the Smeetz script fills automatically.

  • The widget always fetches the latest data from Smeetz.

  • Changes in Smeetz (e.g., new events, prices, or availability) update automatically on your site—no need to touch the code.

  • This makes it highly dynamic and low-maintenance. ✅

How to use:

  1. Copy the provided embed code.

  2. Paste it into your website.

  3. The widget will appear inline and stay up-to-date automatically.

B. Advanced Integration

  • Uses an <a> link with an onclick script to open the widget in a lightbox or popup.

  • The integration hardcodes product IDs, categories, and options.

  • Any changes in Smeetz (new products, categories, or updates) require manually updating the code on your website.

  • This approach is less dynamic because the widget shows a fixed snapshot of your Smeetz setup at the time of embedding. ❌

How to use:

  1. Click on “Advanced Integration” in Smeetz.

  2. Copy the provided code.

  3. Paste it into your website.

  4. Users must click the link to open the widget.

  5. Remember to update the code manually whenever Smeetz changes are made.

2.1 Integrating the iFrame Smeetz on your Wix site

  1. Login to your Wix account.

  2. Go to your Site Manager.

  3. Click on Monitoring and Analytics.

  4. Click on New tool and choose from the Custom drop-down list.

  5. Set your code.

  6. Paste the received code into the iFrame snippet.

  7. Choose the corresponding domain if you have several domains

  8. Choose a name for your code.

  9. Add a code to pages: Define on which pages to add this code (All pages / Choose specific pages).

  10. Choose where the code extract should be placed in the code of your site.

  11. Click on Apply.

2.2 Integrating the iFrame Smeetz on your Wordpress site

  1. Login to your WordPress account.

  2. Install the Header & Footer plugin.

  3. Paste the code received just after opening the tag <body>.

  4. Save the configuration.

2.3 Integrating the iFrame Smeetz on your Webself site

  1. Login to your Webself account.

  2. Choose the page where you want to install the iFrame Smeetz.

  3. Click on an element of the page to add content.

  4. Select the Script option.

  5. Go to the bottom of the window.

  6. Paste the code received in the iFrame snippet to the location shown in the previous illustration: Paste code between <body> and </body> tags.

💡 Our widget has a hidden feature that you can use if you want to allow your visitors to apply a promocode from your website directly when opening the widget. You simply need to add the following attribute to your widget embed code and add the promocode from the your website’s input as its value, like the following :

data-smtz-vouchers="YOUR_CODE_HERE"

</aside>

Did this answer your question?