.. meta:: :description: Google Analytics into WuBook :keywords: Wubook online reception documentation .. _analytics: How to use Google Analytics into WooDoo Online Reception *********************************************************** .. toctree:: :maxdepth: 1 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. .. code-block:: html The following code uses the analitycs.js. .. hidden-code-block:: html :starthidden: True Booking Page 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. .. hidden-code-block:: html :starthidden: True Iframe embedding The following is the old ga.js. .. hidden-code-block:: html :starthidden: True Iframe embedding While here is the analitycs.js .. hidden-code-block:: html :starthidden: True Iframe embedding 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. .. code-block:: javascript 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!