Webmaster API Eng v1 5 4
Webmaster API Eng v1 5 4
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 2 | 18 25-Jul-2014 ver. 1.5.4
Index
1 Introduction ......................................................................................................... 3
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 3 | 18 25-Jul-2014 ver. 1.5.4
1 Introduction
Vertical Booking is a complete and versatile online booking system with an integrated IDS Channel
Manager and GDS connectivity. Simple for hoteliers to manage and incredibly easy to use for hotel guests,
the system provides complete and up-to-date information for its users.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 4 | 18 25-Jul-2014 ver. 1.5.4
The Vertical Booking Internet Booking Engine can be used with different graphic templates. For each
version, parameters that need to be used in the quick reserve module are indicated in red to implement a
working ‘quick reserve’ for your hotel, as described in Section 3.
<!-- LANGUAGE --> One of the following options: ita, eng, deu, fra, esp, rus, dut, tur, por, fin, ell, chi,
kor, jpn, tha, vie, bul, nor, sve, ron, pls, etn, hun, slo, cze, dan, cat, usa, bra
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 5 | 18 25-Jul-2014 ver. 1.5.4
<!-- LANGUAGE --> One of the following options: ita, eng, deu, fra, esp, rus, dut, tur, por, fin, ell, chi,
kor, jpn, tha, vie, bul, nor, sve, ron, pls, etn, hun, slo, cze, dan, cat, usa, bra
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 6 | 18 25-Jul-2014 ver. 1.5.4
<!-- LANGUAGE --> One of the following options: ita, eng, deu, fra, esp, rus, dut, tur, por, fin, ell, chi,
kor, jpn, tha, vie, bul, nor, sve, ron, pls, etn, hun, slo, cze, dan, cat, usa, bra
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 7 | 18 25-Jul-2014 ver. 1.5.4
At the address below it is possible to download a ZIP file containing two examples of quick reserve modules
that are ready to use, that can be customized via CSS.
http://www.verticalbooking.com/quickreserve/quick_reserve.zip
As you can see from the script below, there are placeholders which need to be substituted. The values to
use are the ones provided in section 2 and depend on the graphic layout that you want to implement.
<div>
<form action="<!-- URL ACTION -->"
method="post"
name="myform"
id="myform"
target="_blank"
onsubmit="invia_form();">
...
...
</div>
The provided HTML code is ready to implement Google Analytics tracking with Vertical booking. All you
have to do is include the Analytics (asynchronous) tracking code. For further information concerning Google
Analytics integration with Vertical Booking refer to section 9.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 8 | 18 25-Jul-2014 ver. 1.5.4
In this kind of ‘quick reserve’, the end user will be able to select the arrival date with a calendar and the
number of nights with a select HTML component.
In this second ‘quick reserve’, the end user will be asked to select both the arrival date and the departure
date with a calendar.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 9 | 18 25-Jul-2014 ver. 1.5.4
https://reservations.verticalbooking.com
It is possible to use a third level domain of verticalbooking.com hinting the name of the hotel, the name of
the chain or the web portal name on which the end user will perform the reservation. In fact it is possible
to configure a generic third level domain like, for example:
https://myhotelname.verticalbooking.com
https://myhotelchain.verticalbooking.com
https://myportalname.verticalbooking.com
All these hotels share the same SSL technology to provide information encryption and have the same
degree of security of the default URL.
https://secure.myhotelname.com
This solution has a higher cost in resources because Vertical Booking needs to reserve an IP address for this
purpose only, and we have a limited number of these IP addresses shared with all the system.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 10 | 18 25-Jul-2014 ver. 1.5.4
5 Special offers
It is possible to include a widget in the website both directly and server-side in order to include the list of
the special offers in a page.
<%
url = "
https://reservations.verticalbooking.com/xml/offerte_css_analytics2.htm?id_albergo=<!—HOTEL ID VALUE
-->&dc=<!-- SECURITY CODE -->0&lingua_int=<!-- LANGUAGE -->&id_stile=<!—STYLE CODE --
>&user=albergo_<!—HOTEL ID VALUE -->&pass=<!-- SECURITY CODE -->"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
Response.write xmlhttp.responseText
set xmlhttp = nothing
%>
It is possible to include a widget in the website both directly and server-side in order to include the list of
the special offers in a page.
<?php
include(' https://reservations.verticalbooking.com/xml/offerte_css_2.htm?id_albergo=<!—HOTEL ID
VALUE -->&dc=<!-- SECURITY CODE -->&lingua_int=<!-- LANGUAGE -->&id_stile=<!—STYLE CODE --
>&user=albergo_<!—HOTEL ID VALUE -->&pass=<!-- SECURITY CODE -->’);
?>
It is possible to obtain in a single PHP array variable all the information concerning the special offers. An
example could be the following request:
<?php
$stringa_array =
file_get_contents('https://xml.verticalbooking.com/htng/prices/Offers.htm?id_albergo=<!-- HOTEL ID
VALUE -->&lingua_int=<!-- LANGUAGE -->&user=albergo_<!-- HOTEL ID VALUE >&pass=<!-- SECURITY CODE --
>');
echo $stringa_array;
$array_ritornato = unserialize($stringa_array);
print_r($array_ritornato);
?>
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 11 | 18 25-Jul-2014 ver. 1.5.4
If the hotel would like to insert a custom form in the website, just insert the following HTML fields and post
them to the indicated page (result form):
NOTE: The price offered will only be accepted by the hotel in the stated period.
https://reservations.verticalbooking.com/quot_web_req/invia_richiesta_preventivo_ris.htm
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 12 | 18 25-Jul-2014 ver. 1.5.4
There are two ways to insert a recall request (7.1 and 7.2).
If the hotel would like to insert a custom form in the website, just insert the following HTML fields and post
them to the indicated page (result form):
NOTE: The recall request will only be accepted by the hotel in the stated period.
https://reservations.verticalbooking.com/recall_service/invia_richiesta_recall_ris.htm
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 13 | 18 25-Jul-2014 ver. 1.5.4
Vertical Booking offers a way to automatically insert a customer into the hotel CRS customers section. The
page below is to be inserted in an iframe:
https://reservations.verticalbooking.com/cli_registra_ris.htm
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 14 | 18 25-Jul-2014 ver. 1.5.4
9 Google analytics
In order to activate the interface between Vertical Booking and Google analytics we need:
The first thing a hotel must do in order to enable Analytics tracking, is to insert the Analytics script code in
all the web pages. There are three types of Google Analytics scripts, and both Google and Vertical Booking
suggest using the “Universal Analytics” script. This should be inserted after the beginning <body> tag and
should look like the following extract:
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
Be sure that the same UA-XXXXXXX-X code is inserted into the Vertical Booking Conversion analysis –
Google page.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 15 | 18 25-Jul-2014 ver. 1.5.4
In Vertical Booking, a ‘quick reserve’ is a portion of a webpage in the hotel website that contains a form
providing reservation information to the booking engine. The ‘quick reserve’ must comply with the
following rules:
</form>
The hotel website could choose not to display a quick reserve module, and instead just display a link
redirecting the user to the booking engine. In this case, we also have to pass the Analytics information in
order for the tracking to work correctly.
In order to make sure that traffic from your .com domain to the verticalbooking domain won’t trigger a new
session, you have to add your domain to the “Referral Exclusion List” on your GA account.
To do this, go back to the GA account and go to the Admin section. Select your property and select Referral
Exclusion List:
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 16 | 18 25-Jul-2014 ver. 1.5.4
Enter your .com site domain and and “secure.alesiadistribution.com” domain for exclusion
Now if you login to GA, you will see the transaction source of the booking engine page is no longer
misinterpreted as referral from your .com site, but instead shows the actual source that directed the visitor
to the site originally (e.g. social, search etc.). You can use this information to identify which acquisition
channels you should be focusing on.
Although it is not mandatory, defining goals and funnels is one of the most interesting features provided by
Google Analytics. We decided to include a list of the page names in this document, which are named to let
you easily define funnels. In addition, in section 4.4, you will see how to define custom page names.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 17 | 18 25-Jul-2014 ver. 1.5.4
prenota_new.htm
richiesta_grafica_a.htm
prima_pagina_grafica_a.htm
risultati_grafica_a.htm
vedi_accessori_grafica_a.htm
riepilogo_grafica_a.htm
dati_grafica_a.htm
finale_vedi_grafica_a.htm
prenota_new.htm
richiesta_new.htm
prima_pagina_standard.htm
risultati_new.htm
vedi_accessori_new.htm
riepilogo_super_new.htm
dati_new.htm
finale_vedi_new.htm
reservation_hotel_start.htm
reservation_hotel.htm
reservation_services.htm
reservation_summary.htm
reservation_offer.htm
reservation_thanks.htm
9.7 Custom page names (only for Per Rooms and Per Rate interface)
The interface with Google Analytics lets you define custom page names. In the Conversion analysis – Google
section, all you have to do is activate the feature and indicate the custom page names you want to use.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]
Webmaster API 18 | 18 25-Jul-2014 ver. 1.5.4
Note that these names will be used independently by the version of the booking engine the customer will
be using (per room, per camera, emotional or mobile). This lets you implement a multi-channel tracking
strategy, defining goals and funnels only once.
Piazza Pontida, 7 – I-24122 Bergamo (Italy) - Tel. +39 035 232366 - Fax. +39 035 210500
E-mail: [email protected]