Skip to main content

Analytics

Google Analytics

Enable Reservation Analytics - Check this box to record information to Google Analytics. (You must have a Google Analytics Account)

Google Analytics Tracking ID - Enter your Google Analytics Tracking ID. Contact Google directly to setup your account, as InnQuest Software is not responsible for the setup or support of this product.

For detail information about Cross Domain Tracking - Click here.

Script Embeds

This section allows you to customized the rendered pages by adding additional JavaScript function and procedures. These can be used to work with any Analytic service or further define functions used during the booking process.

Due to the nature of the analytic functionality required:

  • All of the supplied data will be scripts.
  • Some of the scripts can reference vendor scripts from external domains and servers InnQuest Software do not control.

A solution where InnQuest validates all parameters before inclusion or utilize context-sensitive escaping is not suitable for our purposes, since most of the third-party scripts will invoke vendor specific scripts directly from their servers and execute them as part the html page in the user's browser.

You must tell your Analytic company the URL/Source of the request. It is not your website URL and it is not the booking engine URL. It is different.

Our current solution is to sand-box the user-supplied scripts in a specially constructed iFrame so that they can be run but the user's browser would block any attempt of the scripts to access the cardholder's data during the Guest Information step. To achieve this solution we will serve the analytic scripts from a different sub-domain, exclusively set up for serving the analytic scripts. All modern browsers prevent scripts loaded from a different domain to access the html elements or JavaScript variables served from the original domain, thus providing protection against any potentially malicious analytic script trying to access and relay credit card information. At the same time, the scripts served from the different sub-domain will have suitable access to cookies saved exclusively for that sub-domain and thus will be able to track the user across the session starting with Landing, then Search and finally Conversion.

There are three places that these embeds can be added:

  1. Home Page/Landing
  2. Search/Check Availability
  3. Conversion/Completion

Depending on the level of information available at that point, Merge Fields are available to be inserted into the screen.

Variables for Search/Check Availability

CheckIn_MDYThe CheckIn date in MM/DD/YYYY format
CheckInThe CheckIn date in ISO (YYYY-MM-DD) format
CheckIn_DMYThe CheckIn date in DD/MM/YYYY format
CheckIn_YMDThe CheckIn date in YYYY/MM/DD format
CheckOut_MDYThe CheckOut date in MM/DD/YYYY format
CheckOutThe CheckOut date in ISO (YYYY-MM-DD) format
CheckOut_DMYThe CheckOut date in DD/MM/YYYY format
CheckOut_YMDThe CheckOut date in YYYY/MM/DD format
AdultsTotal of adults for reservation
ChildrenTotal of children for reservation
PeopleTotal of adults + children for reservation
NightsTotal nights for reservation
RoomsTotal rooms for reservation

Additional variables for Conversion/Completion

ConfirmationNumberThe final confirmation number
RoomTypeBooked Room Type
Rate TypeBooked Rate Type
Room TotalTotal value of the Room
TaxesTotal value of the Taxes
AddOnsTotal value of the AddOns
GrandTotalTotal value of Room + Taxes + AddOns
StateState of the Guest
CountryCountry of the Guest
EmailEmail of the Guest
PromoCodePromo Code
IsMobileIs Mobile Device (True or False)

Quick Example:

<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['addEcommerceItem',
"%RoomType%",
["%Rooms%", "%RateType%", "%PromoCode%"],
%RoomTotal%,
%Rooms%
]);
</script>