Integration guide

Add online booking to your website

Choose the method that suits your needs and technical skills.

Which option should you choose?

  • Hosted page: you don't have a website or want a solution straight away
  • WordPress plugin: you have a WordPress website and want a native integration
  • Iframe widget: you have a website and want to embed the form in it
  • Floating button: you want a "Book" button on every page
  • Public API: you are a developer and want custom integrations
  • 3CX telephony: you have a 3CX phone system and want to recognise your guests when they call
Easy · Everyone

Hosted booking page

Your booking page is already set up. Just share the link.

Already set up, nothing to do

Your booking page already exists at a personalised address (e.g. votre-restaurant.couverty.ch/reservation). You can share it right away.

Why use this option?

No setup

No code to copy, nothing technical

Automatic design

Matches your restaurant's colours

Always up to date

Opening hours, capacity and closures in sync

Mobile-friendly

Optimised for smartphones and tablets

Tip: create a QR code

Print a QR code for your printed materials

Your guests can scan the code with their smartphone to go straight to the booking form. Ideal for business cards, menus, flyers, window posters...

Intermediate · Web designers, developers

Embedded widget (iframe)

Embed the booking form directly in a page of your website.

The widget automatically adapts to the width of your page and resizes its height to fit the content. You can place it on any page of your website.

Integration code

Copy this code and paste it where you want the form to appear:

html
<!-- Couverty booking widget -->
<div data-couverty-widget="votre-slug" style="position:relative">
  <a href="https://couverty.ch/votre-slug/reserver">Book a table online</a>
  <a data-couverty-logo href="https://couverty.ch/" target="_blank" rel="noopener"><img src="https://couverty.ch/logo/logo-couverty.png" alt="Couverty" width="76" height="18"></a>
</div>
<script type="application/ld+json">{ "@type": "Restaurant", "acceptsReservations": "…" }</script>
<script src="https://couverty.ch/widget.js" async></script>

The "Book a table online" link only appears if the widget cannot load. The Couverty logo sits in the corner of the widget; if you delete its line, the widget shows its own.

Where can I find my personalised code?

The code above is an example. Your personalised code, with your restaurant's URL, is available in the integration settings.

Installing on WordPress

  1. 1

    Log in to WordPress

    Open your WordPress dashboard
  2. 2

    Edit your booking page

    Create a new page or edit an existing one
  3. 3

    Add a Custom HTML block

    Gutenberg: search for "Custom HTML" in the blocks
    Classic editor: switch to "Text" mode
  4. 4

    Paste the code and publish

    Paste the code copied from the settings, then publish the page

Other platforms

Wix

Add an "Embed HTML" element and paste the code

Squarespace

Add a "Code" block and paste the integration code

Webflow

Use the "Embed" element to add HTML code

Plain HTML

Paste the code directly into your HTML file

Easy · WordPress users

WordPress plugin

Add your menu, drinks, daily menu and booking in a few clicks with our official plugin.

Why use the plugin?

The plugin adds native WordPress Gutenberg blocks and shortcodes. Your data is fetched automatically through the Couverty API, with a built-in cache for optimal performance.

Installation

Download the Couverty plugin

.zip file, compatible with WordPress 6.0+ / PHP 7.4+

  1. 1

    Install the plugin

    In WordPress: Plugins → Add New Plugin → Upload Plugin → Select the .zip file
  2. 2

    Activate and configure

    Activate the plugin, then open the Couverty menu in the sidebar
  3. 3

    Connect your account

    Paste your API key and click "Connect": the restaurant ID and your data fill in automatically
  4. 4

    Create your pages

    One button creates the Menu, Daily menu, Drinks and Booking pages, already filled in

Your pages are already written

No blank page to fill in. From the plugin settings, one click creates the four pages of your website (the menu, the daily menu, the drinks and the booking page) with your real dishes and real prices already in place, laid out like a restaurant menu.

"Our menu" page on a WordPress website: dishes are grouped by category, each name is linked to its price by a dotted line, with allergens and vegetarian or gluten-free labels.
The menu, by category
"Daily menu" page: each day of the week in its own box with starter, main course, dessert and price; today is highlighted.
The daily menu, day by day

Example rendering with the default WordPress theme. On your website, the pages use your fonts and colours.

Pages are created as drafts: you review them before they go live. Everything can be edited in the WordPress editor: text, section order, layout. Add a featured image to give the page an opening.

Available blocks and shortcodes

Menu (dishes)

[couverty_menu]

Drinks

[couverty_boissons]

Daily menu

[couverty_menu_du_jour]

Booking (widget)

[couverty_reservation]

Each block is also available in the Gutenberg editor with visual options. The floating booking button is configured directly in the plugin settings.

Intermediate · Web designers, developers

Floating button

A "Book" button appears at the bottom right of every page of your website.

How does it work?

A discreet button appears at the bottom right of the screen. When a visitor clicks it, a window opens with the booking form. The visitor can book without leaving your page.

Integration code

Just one line of code to add to your website:

html
<script src="https://couverty.ch/widget.js?slug=votre-slug" async></script>

Installation

Where should this code go?

  1. 1

    Copy your personalised code

    From the integration settings page

  2. 2

    Paste it before the </body> tag

    This tag is at the end of every HTML page

  3. Done!

    The button will appear automatically on every page

Where to find </body> on your platform

  • WordPress: in your theme's footer.php file, or use a plugin such as "Insert Headers and Footers"
  • Wix: Settings → Advanced → Custom Code → Body - end
  • Squarespace: Settings → Advanced → Code Injection → Footer
  • Webflow: Project Settings → Custom Code → Footer Code
Intermediate · Web designers, developers

Conversion tracking

Measure the bookings that come from Google Ads, Meta or other tools, with the tags already installed on your website.

How does it work?

With every booking, the widget sends the couverty_reservation event to your website. Couverty loads no tags and sets no cookies: your own tools receive the event.

Before you start

  • The widget is installed with the current code from the settings, as an embedded widget or a floating button. Old embedded widget code, without the widget.js line, does not send the event: replace it.
  • Your ads lead to your website. The booking page hosted by Couverty does not send the event yet.
  • With the WordPress plugin, the Booking block and the floating button send the event from plugin version 1.13.0 onwards.

Data sent

reservation_idUnique booking ID. Use it as the transaction ID: the same booking is never counted twice.
restaurantRestaurant ID, useful for a group sharing a single GTM container.
dateBooked date, in YYYY-MM-DD format.
serviceBooked service: midi (lunch) or soir (dinner).
guestsNumber of guests.

No personal data (name, email, phone) is sent.

With Google Tag Manager

  1. 1

    Import the Couverty template

    In GTM: Admin → Import Container. Choose the file and your workspace, then Merge. The template adds the "Couverty - Reservation" trigger and five variables.

    couverty-gtm.json
  2. 2

    Add your Google Ads conversion

    Create a "Google Ads Conversion Tracking" tag with your conversion ID and label, triggered by "Couverty - Reservation". Set the transaction ID to {{Couverty - Reservation ID}}. Already have a conversion tag for another booking tool? Just replace its trigger.
  3. 3

    Connect your other tools

    The same trigger works for GA4, the Meta pixel, TikTok or LinkedIn: one booking, one event in each tool.
  4. 4

    Test, then publish

    In Preview mode, make a test booking on your website and check that your tags fire. Publish the container, then cancel the test booking in Couverty.

With the Google tag, without GTM

If your website loads the Google tag (gtag.js) directly, the couverty_reservation event reaches GA4 with no setup. To turn it into a Google Ads conversion, mark it as a key event in GA4, then import it into Google Ads as a conversion from Google Analytics 4.

When GTM is on the website, only GTM receives the event: set up GA4 in GTM. That way the booking is never counted twice.

With JavaScript code

For any other tool, listen for the couverty:reservation event on the page. Example with the Meta pixel:

html
<script>
window.addEventListener('couverty:reservation', function (event) {
  // The booking data is in event.detail
  fbq('track', 'Schedule');
});
</script>

Cookies and consent

Your tags remain subject to your cookie banner and Google's Consent Mode, as on the rest of your website. Couverty neither reads nor sets any cookies.

Advanced · Restaurants with a 3CX phone system

3CX telephony

Your guest's name appears in the softphone as soon as they call, and every missed call creates a notification in Couverty.

How does it work?

3CX queries Couverty on every call with the caller's number. If the number matches a known guest (a past booking or a guest record), 3CX shows their name, and Couverty creates an enriched notification (visits, covers, no-shows) that you can view in the dashboard and on mobile. At the end of the call, 3CX sends back the status: a missed call triggers a dedicated notification so that no callback slips through the net.

Prerequisites

  • A 3CX Standard licence or higher (CRM integrations are not included in the free plan)
  • Administrator access to the 3CX console
  • The Épicurien plan on Couverty, which unlocks the 3CX integration

Installation

  1. 1

    Generate an API key

    From the integration settings, "Public API" section. Copy the key straight away: it starts with qr_ and is not shown again.

  2. 2

    Download the CRM template

    The XML file tells 3CX how to query Couverty.

    couverty-crm-template.xml
  3. 3

    Import it into 3CX

    In the admin console: Integrations → CRM, then + Add template and select the downloaded file.

  4. 4

    Enter your settings

    In the settings of the imported template:

    ApiUrlhttps://app.couverty.ch
    ApiKeyqr_your_api_key
    ReportCallEnabledTrue

    ReportCallEnabled controls missed call notifications: set it to False to keep caller identification only.

What 3CX calls

The template queries two public API endpoints: a lookup on every call to identify the contact, and a report at the end of the call for the call log and missed calls. You don't need to write any code: their contract is described in the API documentation if you need to troubleshoot an exchange.

The guest's name does not appear

Three possible causes, most frequent first: the caller's number is withheld; the guest has never booked with you and has no guest record; they are calling from a different number from the one used for their booking. Common Swiss formats (+41 79…, 0041…, 079…) are all recognised: a formatting difference is never the cause.

Authentication error in 3CX

A 401 code means the API key is missing, mistyped or revoked; a 403 means the venue's plan no longer gives access to the API. Generate a new key in the integration settings and paste it into the ApiKey setting of the 3CX template.

Need more control?

Read our full API documentation to build custom integrations.

View the API documentation

Need help with the integration? Contact our support team