How-To: Add analytics tracking to website

How-To: Add analytics tracking to website

Hotelwize supports analytics tracking to different vendors such as Google Analytics (GA4), Google Ads, Facebook, Microsoft, Matomo

Tracking Events

Page views & Click events

Tracking is implemented in each theme using the page_view and click events. page_view is fired when a website page is loaded and click event is set to fire in specific elements or buttons on the website, like "Book Now" button.

To support as many as possible different analytics vendors we have implemented an Analytics Middleware functionality. This way we have the ability to easily include more vendors in hotelwize platform. 
Tracking is implemented through Hotelwize Plugins and you may use many different analytics vendors simultaneously, as the events are fired through our Analytics Middleware.

Click Events

There are various click events that can be tracked:

Event
Payload
Descriptionpage_view
click
title, label
user clicks on a button or link
click_book

user clicks on the header's BOOK NOW button
click_phone

user clicks on the phone (button or link) to call


Booking Forms

For booking engine forms, Hotelwize will send the following events:

EventPayloadDescription
booking_formcheck_in,check_out,adults,children,infants,code,nightsuser submit booking form

Contact Forms

EventPayloadDescription
contact_formstatus, name, form idThe form submission status is: success, fail or error.

Newsletter Subscription

EventPayloadDescription
newsletterstatusThe form submission status is: success, fail or error.

Ecommerce Conversions

When using Hotelwize Liquid Plugin to integrate your preferred booking engine into the website, ecommerce tracking is performed through the Hotelwize Analytics Middleware.

The booking flow for Hotelwize Liquid is:
  1. User selects preferences (check-in, check-out, number of guests)
  2. Room listing is displayed with rates and availability
  3. (optional) Room page is displayed with rates and availability
  4. User clicks on Book CTA
  5. User enters their personal & payment info and select supplements
  6. Complete reservation

Event
Payload
Description
view_item_list
Ecommerce data
Rooms and availability overview
select_item
Ecommerce data
User select a room in the room listing and room page is displayed
view_item
Ecommerce data
Room page with rates & availability
add_to_cart
Ecommerce data
User add a room or supplement into the basket
begin_checkout
Ecommerce data
User select room and rate plan and click on book button
add_personal_info
Ecommerce data
User enter personal info
add_payment_info
Ecommerce data
User enter payment info
purchase
Ecommerce data
User complete reservation
refund
Ecommerce data
User cancel reservation
view_rateplan


login
method:OTP,ReservationCode,Credentials
User login
currency
currency code
User change currency

Hotelwize Liquid Booking Engine, allow visitors to view rates and book a room in different pages, such as the photo gallery or offer page. The booking flow and the order of the events will not be the same or event omitted for:
  1. view_item_list
  2. view_item
  3. select_item

Booking Form Events

These events are fired when the user change the stay preferences (stay dates, number of guests, rooms, coupon code)
A single booking_form event is fired that contains the following metrics:
Event Name
Label
Description
adults
Adults
Number of adults. Fired when a user clicks on the booking form or change the stay preferences.
children
Children
Number of children. Fired when a user clicks on the booking form or change the stay preferences.
infants
Infants
Number of infants. Fired when a user clicks on the booking form or change the stay preferences.
rooms
Rooms
Number of rooms. Fired when a user clicks on the booking form or change the stay preferences.
check_in
Check In date
Fired when a user clicks on the booking form or change the stay preferences.
check_out
Check Out date
Fired when a user clicks on the booking form or change the stay preferences.
los
Length of Stay
Fired when a user clicks on the booking form or change the stay preferences.
booking_window
Booking window
Number of days prior to arrival. Fired when a user clicks on the booking form or change the stay preferences.
check_in_month
Check In month
Value: 1-12. Fired when a user clicks on the booking form or change the stay preferences.
check_out_month
Check Out month
Value: 1-12. Fired when a user clicks on the booking form or change the stay preferences.
coupon
Coupon code
Coupon code used to unlock special rates
hotel_code
Hotel code

hotel_name
Hotel name

stay_preferences
User preferences



I want to use Google Tag Manager

We understand that Google Tag Manager has become an industry standard among the online marketers community. The ability to add tracking scripts and events on a website without programming knowledge and / or previous experience with every CMS is invaluable.

However this is also a potential threat for the security of the website. Injecting scripts from Google Tag Manager may affect the security standards (PCI) or other compliances (GDPR) and policies (Cookies, Terms & Conditions) and allowing any user to inject such scripts in a controlled environment like Hotelwize is not acceptable.

In Hotelwize we give the online marketers' the ability to add any (pre-approved) tracking script with respect to GDPR, PCI compliances, Cookies policy through Analytics Plugins. This way we keep you (Online Marketers), the website owner and your visitors data safe under our strict security policies.

If you still insist on using Google Tag Manager, we provide a specialized plugin Google Tag Manager Plugin to activate it. This plugin is restricted to allow only Google Analytics and Google Ads tags for GTM.

What is Hotelwize Analytics?

Having in mind the GDPR compliance we have deployed an analytics platform to use for user tracking. Hotelwize Analytics provides tools for GDPR compliance - like no cookie tracking option. This service is provided free of charge for Hotelwize websites.

Hotelwize Analytics is also used to display relevant information on Hotelwize dashboard and also to track events and goals.

We strongly suggest to activate Hotelwize Analytics even if it's not your preferred analytics platform

How-to: Activate Google Analytics Tracking

  1. Open the website on the Hotelwize Application
  2. Navigate to Plugins section
  3. Locate and activate Google Analytics 4 Plugin
  4. Enter the correct GA4 code for your website
  5. Save changes and Publish website

By default Google Analytics Tracking plugin uses anonymization of IP addresses

How-to: Activate Hotelwize Analytics

Hotelwize Analytics are activated automatically for every website. Hotelwize Analytics does not use cookies and are GDPR friendly.

How-to: Activate Facebook Tracking

  1. Open the website on the Hotelwize Application
  2. Navigate to Plugins section
  3. Locate and activate Facebook Pixel
  4. Enter the correct Pixel ID for your website
  5. Save changes and Publish website

How-to: Add a conversion tracking in Google Ads

Google Ads conversion tracking is mainly performed through the booking engines. You may add a conversion label to forms and track form submissions.

    • Related Articles

    • Analytics Tracking

      Every website in Hotelwize is ready to send analytics tracking events to the supported platforms. All you have to do is to activate the corresponding plugin(s) and Hotelwize will send various events, page views and conversions to the analytics ...
    • How-To: Track user actions on Liquid e-Commerce websites

      Hotelwize websites that use Liquid e-Commerce, offer a variety of tracking events depending on the third-party applications that the hotel uses on its website. Liquid Events Category Action label Description Liquid Booking Flow {roomId} – ...
    • Hotelwize for Online Marketing teams

      Hotelwize is designed with performance optimization and online marketing in mind. The support of online marketing teams is built in core functionality and our goal is to excess in: Performance (Page speed) SEO techniques Themes that support semantic ...
    • How-To: Add 3rd party application on my website

      We understand that several 3rd party services provide various functionalities to online marketers community. The ability to add extra functionalities on a website without programming knowledge and / or previous experience with every CMS is ...
    • Create a new Website

      To create a new website you must be a member of the tenant administrators. Navigate to Overview and then select Websites from the menu Click on Add Website button Select the website owner's Company from the drop down list. If you don't find the ...