.. meta:: :description: Google Analytics into WuBook :keywords: Wubook online reception documentation .. _analytics: How to use Google Analytics into Wubook booking system ****************************************************** .. 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 Adwords `_ you may be interested in tracking the number of conversions of your campaigns by the integration of Google Adwords and WuBook. 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 code that Google has assigned to your Analytics account (something like UA-XXXXX-XX). After this step, you must change something on the website as showed in the next section. Custom implementation of the online booking with iframe ======================================================= In order to enable Google Analytics on Wubook's control panel you must: - Fill the field "Google Key" - Flag "activate ga" - Select the type of the code you wish to use (the new analytics.js or the old ga.js) If you're using Wubook'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 is the old ga.js. .. code-block:: html Iframe embedding While here is the new analitycs.js .. code-block:: html Iframe embedding
Booking Engine 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), ....) Understanding the results ========================= Once you integrated Google Analytics, how would we monitor requests on booking online? It easy! First of all, remember that Google Analytics can be delayed up to 24 hours, so **do not be alarmed** if -during the first few hours- you don't see any new information. After 24 hours, you can go to see Google Analytics data selecting the **Contents** menu on the left menu, then by clicking **Event Tracking**. **Google Analytics** As you can see, WuBook creates some 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 2011-05 means that a request was made for May 2011). The integration to Google Analytics also provides an ecommerce tracking. This tool is useful when you implement the `AdWords campaigns `_. Enjoy!