The WBE+ will work as an overlay over the actual site. To integrate it just paste the following code into your Website.
<head></head>-Element or to the Wordpress "wp_enqueue_script" function.
<head></head>element of your page.
<script type='text/javascript' src='https://res-online.ch/wbePlus/incubator.js.php?hotelID=2081&username=WBEPlus&password=H41g18Nv'></script>
function hopa_wbe() {
wp_enqueue_script( 'script-name', 'https://res-online.ch/wbePlus/incubator.js.php?hotelID=2081&username=WBEPlus&password=H41g18Nv', array(), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'hopa_wbe' );
For the Quickstarter just create an element with the class "wbe-quickstarter-container" where you want the Quickstarter to show up.
<div class="wbe-quickstarter-container"></div>
The Quickstarter should automatically resize to the given space. If you don't like the breaks that it made, just adjust it with CSS.
In case you want to keep your own Quickstarter use the function "wbeCustomQuick" to transmit the parameters:
hotelID is optional
wbeCustomQuick(arrival, departure, adults, childs, babies, hotelID)
wbeCustomQuick("2025-11-08", "2025-11-09", 2, 1, 0, 2081)
You have two possibilities to change the design of your WBE.
In case you need an integration without the Multiproperty solution add the parameter "multiProperty=false" to the script
<script type='text/javascript' src='https://res-online.ch/wbePlus/incubator.js.php?hotelID=2081&username=WBEPlus&password=H41g18Nv&multiProperty=false'></script>
If you want to have 2 different sites with different hotels you can filter the hotels that should be showed
<script type='text/javascript' src='https://res-online.ch/wbePlus/incubator.js.php?hotelID=2081&username=WBEPlus&password=H41g18Nv&multiPropertyFilter=XXXX,XXXX,XXXX'></script>
For hiding certain rooms you can use the parameter bellow:
<script type='text/javascript' src='https://res-online.ch/wbePlus/incubator.js.php?hotelID=2081&username=WBEPlus&password=H41g18Nv&excludedRooms=XXXX,XXXX,XXXX'></script>
As the WBE is always running in the background you have the possibility to access some of its functions.
<button onclick="wbeOpenOverlay()">Book now</button>
http://hotelwebsite.com/book/index.php?wbeAutoOpen
<button onclick="wbeChangeHotel(hotelID)">Change Hotel</button>
<button onclick="wbeSelectRoom(roomID)">Book this Room</button>
<button onclick="wbeOpenPackage(packageID, hotelID[optional])">Book this Package</button>
<html lang="de">
wbeChangeLang("en")
<script type='text/javascript' src='https://res-online.ch/wbePlus/incubator.js.php?hotelID=2081&username=WBEPlus&password=H41g18Nv&lang=de'></script>
Possible languages: de -> German, en -> English, fr -> French, es -> Spanish, it -> Italian
More functions will be available later...
It is possible to pass parameters with predefined values to the WBE
Please replace {{yourhotelwebsite}} with the actual URL where the Booking engine is implemented.
{{yourhotelwebsite}}?wbeDeeplink&wbeArrival=2025-11-08&wbeDeparture=2025-11-09&wbeAdults=2&wbeChildren=1
{{yourhotelwebsite}}?wbeOpenPackage={{packageID}}
{{yourhotelwebsite}}?wbeSelectRoom={{roomID}}
{{yourhotelwebsite}}?wbePromo={{promoCode}}
{{yourhotelwebsite}}?wbeChangeHotel={{hotelID}}
You can open the overlay with an specific Package. To do so use the function "wbeOpenPackage".
wbeOpenPackage(packageID)
URL:
www.hotelwebsite.com?wbeOpenPackage=707
| ID | Name |
| 707 | 7Nights Package |
| 2368 | 3Nächte/4Tage @ CHF 385pp |
| 2369 | 4Nächte/5Tage @ CHF 485p.p |
The following code will open the package "7Nights Package".
wbeOpenPackage(707)
More packages can be created in the Backoffice.
Show the rooms best price directly in your website.
Create an element with the class "wbe_roomPrice" and add the atributes "roomid" and "numofdays" (Number of days sets the range within it should search for the best available price). This will display an formated price with currency ex. [€ 130]
<div class="wbe_roomPrice" data-roomid="XXXX" data-numofdays="1"></div>
| ID | Name |
| 1646 | Comfort Einzelzimmer |
| 1648 | Komfort Doppelzimmer |
| 1649 | Superior Doppelzimmer |
| 3331 | Deluxe Zimmer mit Balkon |
| 1647 | Komfort Dreibettzimmer |
| 3332 | Komfort Familienzimmer |
| 1718 | Deluxe Penthouse Suite mit Panoramablick |
| 7078 | Central Serviced Apartment 1 (not in Use) |
| 7553 | Central Serviced Apartment 2 (not in use) |
| 9985 | Central Serviced Apartment 3 (not in use) |
Supported Tracking Plugins
Works automatically if Google Analytics is already implemented in the webpage
Enhanced E-commerce needs to be enabled.Make sure you have a GA4 Configuration
Create a Tag with the Tag Type "Google Analytics: GA4 Event" and the event name "{{Event}}". Also make sure to toggle the "Send Ecommerce data" setting
Link the created Tag to a Trigger of the type "Custom Event" and paste the following as "Event name". Make sure to toggle the "Use regex matching" setting
view_item|view_item_list|select_item|add_to_cart|remove_from_cart|view_cart|begin_checkout|add_payment_info|add_shipping_info|purchase
Currently only "begin_checkout" and "purchase" are being used, but this may change in the future
After publishing your changes, you should be able to see the new events in the Google Analytics 4 App.
You can use the Debugview to get almost realtime events.
The Web Booking Engine triggers three different events for the Google Tag Manager:
Enhanced E-commerce needs to be enabled. (In Google Analytics and in the variable of GTM)Can be directly linked to Google Analytics Events
{
action: 'add_extra',
category: 'WBE',
nonInteraction: false,
actionLabel: 'Add extra',
event: 'wbeEvent'
}
Can be directly linked to Google Analytics E-Commerce
{
ecommerce: {
purchase: {
actionField: {
id: 'XXXXXXXXXX',
affiliation: 'HotelPartner',
revenue: 1200,
tax: '0',
shipping: '0'
},
products: [
{id: '1803', name: 'Single Room', category: 'Rooms', quantity: 1, price: 500},
...
]
}
},
event: 'wbeReservation'
}
{
wbeArrival: '2025-11-08',
wbeDeparture: '2025-11-09',
wbeAdults: 2,
wbeChilds: 0,
event: 'wbeConfigChange'
}
For the following Plugins, please send us the respective logins
In case you need to display the day prices, you can use the following URL:
https://wbech1.res-online.net//wbePlus/livePrices.php?hotelID=2081&token=H41g18Nv&lang=en&rooms=1646,1648,1649,3331,1647,3332,1718,7078,7553,9985
In order to send mails from the hotels mail adress we need their SMTP data.