How to use Google Analytics into WooDoo Online Reception

If you use Google Analytics to track the visits to your website, you can extend the functionalities to the WuBook online reception as well. The integration allows you to observe how your potential customers interact with online booking. This isn’t just a tracking system: it classifies each action, recording the requests, the lack of availability and displayed quotes. It also combines information on the periods required. If you use also Google Ads you may be interested in tracking the number of conversions of your campaigns by the integration of Google Ads and WuBook.

WuBook Events Tracking

Once you integrated Google Analytics, WuBook creates some event categories:

  • WubookRequest: requests of availability with dates

  • WubookOpen: opening the online booking without dates

  • WubookNoavail: display requests with the absence of availability

  • WuBookOpportunities: Opportunities step

  • WuBookOffers: Rates step

  • WubookPreview: Confirmation step

  • WubookReservation: Thank you page

In addition to creating categories of events, WuBook gives you absolutely useful and valuable information: for each event, WuBook indicates the reference month (for example, WubookRequest 2021-11 means that a request was made for November 2021).

The integration to Google Analytics also provides an ecommerce tracking. This tool is useful when you implement the Google Ads campaigns.

Guide to the integration

There are different procedures to implement the integration of Google Analytics. Below you’ll find all the possible scenarios. In any case, you must configure your Hotel control panel by specifying the Tracking Code that Google has assigned to your Analytics account (something like G-XXXXXXXXXX). After this step, you must change something on the website as showed in the next section.

In order to enable Google Analytics on WooDoo’s control panel you must:

  • Fill the field “Google Key”

  • Flag “activate ga”

  • Select the type of the code you wish to use (GA4, analytics.js or the old ga.js)

Here’s a good resource that may helps you finding your Google Key (Tracking Code) and the javascript code to embed in your site.

Basic implementation

If your site just links the WooDoo Online Reception using a WooDoo widget or a direct link, you just have to add some lines of code into each webpage you want to track.

The following code uses the gtag.js.

<!doctype html>
<html>
  <head>
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('config', 'G-XXXXXXXXXX', {
        'cookie_flags': 'max-age=7200;secure;samesite=none'
      });
      gtag('set', 'linker', {
        'accept_incoming': true
      });
      gtag('js', new Date());
      gtag('config', 'G-XXXXXXXXXX');
      gtag('config', 'G-XXXXXXXXXX', {
        'linker': {
          'domains': ['wubook.net']
        }
      });
    </script>
  </head>
  <body>
    <!-- WooDoo Widget or WooDoo Online Reception Link Code -->
  </body>
</html>

The following code uses the analitycs.js.

+ show/hide code

Iframe implementation

If you’re using WooDoo’s online reception via Iframe, you’re gonna need to insert the correct multidomain code and to invoke wubook’s code that generates the iframe on the callback of google analytics object.

The following code uses the gtag.js.

+ show/hide code

The following is the old ga.js.

+ show/hide code

While here is the analitycs.js

+ show/hide code

Custom implementation of the online booking with pop-up

If you decide to make a custom implementation of online reception on your website, you must follow Google’s guidelines for the implementation of the “tracking for multiple domains”. If you want to open a new WuBook window by default, you need to do something like this.

pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
window.open(pageTracker._getLinkerUrl(bookingurl), ....)

Check the results

To test if the connection works, go to your Google Analytics panel, select Real Time on the left menu, then click Events. If you or someone is visiting the website, or the corresponding WooDoo online reception, you should see events recorded in the last few minutes. These correspond with the WooDoo Events listed at the top of this page.

Enjoy!