Integration guide
Add online booking to your website
Choose the method that suits your needs and technical skills.
No setup required
Embed it in your website
A button on every page
For developers
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
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...
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:
<!-- 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
Log in to WordPress
Open your WordPress dashboard - 2
Edit your booking page
Create a new page or edit an existing one - 3
Add a Custom HTML block
Gutenberg: search for "Custom HTML" in the blocks
Classic editor: switch to "Text" mode - 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
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
Install the plugin
In WordPress: Plugins → Add New Plugin → Upload Plugin → Select the .zip file - 2
Activate and configure
Activate the plugin, then open the Couverty menu in the sidebar - 3
Connect your account
Paste your API key and click "Connect": the restaurant ID and your data fill in automatically - 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.


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.
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:
<script src="https://couverty.ch/widget.js?slug=votre-slug" async></script>
Installation
Where should this code go?
- 1
Copy your personalised code
From the integration settings page
- 2
Paste it before the
</body>tagThis tag is at the end of every HTML page
Done!
The button will appear automatically on every page
Where to find </body> on your platform
- WordPress: in your theme's
footer.phpfile, 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
Conversion tracking
Measure the bookings that come from Google Ads, Meta or other tools.
How does it work?
With every booking, the widget sends the booking_created event to your website, the same name Zenchef uses. Couverty loads no tags and sets no cookies there: your own tools receive the event.
The simplest way: your Google Ads conversion in Couverty
- 1
Copy your conversion
In Google Ads: Goals → Conversions → the action that counts your bookings → Tag setup → Install the tag yourself. Copy the event snippet, or just thesend_tovalue (AW-…/…). - 2
Paste it into Couverty
Settings → Integrations → Google Ads and Analytics → Google Ads conversion, then save. - 3
Check your website's Google tag
Your website must load the Google tag of your Google Ads account (AW-…): Site Kit on WordPress with Google Ads linked, or the code provided by Google Ads. Every booking is then counted, on your website and on your Couverty pages.
Available on the Gourmet and Épicurien plans. Your website only has Google Tag Manager? Set up the conversion in GTM, below. Set up in both places, the same conversion is only counted once: the transaction ID is the same.
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.jsline, does not send the event: replace it. - With the WordPress plugin, the Booking block and the floating button send the event from plugin version 1.13.0 onwards.
Data sent
| reservation_id | Unique booking ID. Use it as the transaction ID: the same booking is never counted twice. |
| restaurant | Restaurant ID, useful for a group sharing a single GTM container. |
| date | Booked date, in YYYY-MM-DD format. |
| service | Booked service: midi (lunch) or soir (dinner). |
| guests | Number of guests. |
No personal data (name, email, phone) is sent.
With Google Tag Manager
- 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 (booking_created event) and five variables.
couverty-gtm.json - 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}}. Your tag already fires onbooking_createdfor Zenchef? It counts Couverty bookings too, with no change. - 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
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 booking_created 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. Already done for Zenchef? Nothing to change.
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:
<script>
window.addEventListener('couverty:reservation', function (event) {
// The booking data is in event.detail
fbq('track', 'Schedule');
});
</script>On your Couverty pages
Do your ads or your Google profile lead to your Couverty pages (couverty.ch/your-restaurant or your own domain)? The Google Ads conversion set in Couverty is counted there too, when the visitor accepts marketing cookies. To load GA4 there, paste its ID (G-…) in Settings → Integrations → Google Ads and Analytics: every booking sends the same booking_created event there. Google Tag Manager (GTM-…) only loads on your own domain, and only Google tags run there. Available on the Gourmet and Épicurien plans.
Cookies and consent
On your website, your tags remain subject to your cookie banner and Google's Consent Mode: Couverty neither reads nor sets any cookies there. On your Couverty pages, Couverty's banner asks for the visitor's consent, for your restaurant only: your tags only load afterwards, and your privacy policy mentions it.
Switching booking tools
Move from Zenchef or another tool to Couverty without losing bookings or conversions.
Prepare
- 1
Find your Google tag
In your website's source code, look forGTM-,G-orAW-. Your tag is only set in the old tool's back office? It will go with it: install it on your website, or paste it into Couverty for your Couverty pages. - 2
Find your conversion
In Google Ads: Goals → Conversions. Note the action that counts bookings and its source (website tag, Google Tag Manager or GA4). Keep this action: creating a new one would restart bid strategy learning. - 3
Connect Couverty before switching
Coming from Zenchef, the event is alreadybooking_created: your GTM and GA4 count Couverty with no change. Coming from another tool, make your GTM trigger fire on both events (regular expression^(old_event|booking_created)$), or rename the event in GA4 (Modify event). Without GTM or GA4, paste your Google Ads conversion into Couverty. - 4
List the links to replace
Website, Google profile, Instagram, newsletter, and in Google Ads the final URLs and sitelinks that lead to the old tool.
Switch day
- 1
Replace the widget
Wherever the old module appears, add the Couverty code (Settings → Integrations), then replace the links you listed. - 2
Switch your Google profile
Turn off Reserve with Google in the old tool: otherwise Google keeps sending bookings there. Then turn on Couverty's "Book" button (Integrations → Google Business), or add the link to your booking page to your profile yourself. - 3
Make a test booking
With an email address you have never used, in GTM Preview mode or with Tag Assistant. In Google Ads, the conversion shows up within a few hours. Then cancel the test booking.
Existing bookings
Upcoming bookings from the old tool do not move to Couverty on their own. On the Épicurien plan, send the assistant a screenshot of the list, or paste it as text: it adds them in one go, once you approve. Otherwise, enter them in Bookings. Guests who left an email receive a Couverty confirmation, with a cancellation link that works.
Keep the old tool open, with no new bookings, until the last booking taken there has passed: its emails still point to it.
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
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
Download the CRM template
The XML file tells 3CX how to query Couverty.
couverty-crm-template.xml - 3
Import it into 3CX
In the admin console: Integrations → CRM, then + Add template and select the downloaded file.
- 4
Enter your settings
In the settings of the imported template:
ApiUrlhttps://app.couverty.chApiKeyqr_your_api_keyReportCallEnabledTrueReportCallEnabledcontrols missed call notifications: set it toFalseto 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 documentationNeed help with the integration? Contact our support team