Google Analytics integration (for users of Classic Analytics)

These instructions refer to the integration with the old Google Analytics, sometimes called "Classic". To find out the difference between the 'classic' Analytics and Universal analytics, and to learn which version of Analytics to use, see this article.

In this article:


Install Google Analytics tracking code

Install Google Analytics tracking code in all the pages of your web site, following Google's instructions

If you are already using Google Analytics tracking code in your web site, make sure to use the new "asynchronous" tracking code. This has been the default since 2009, but if you have been using Google Analytics for a long time you may still have the old code. The new asynchronous tracking code is recommended by Google for all users, and is REQUIRED for the Bookeo integration.


Change your tracking code to allow for cross-domain integration 

Normally your GA tracking code will look like this:

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-12345678-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>


In order to enable cross-domain integration, you will need to add two lines to your tracking code:

	<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-12345678-1']);
  _gaq.push(['_setDomainName', 'mydomain.com']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);
	(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

The changes must be applied to all pages of your web site. Make sure to replace mydomain.com with the domain name of your web site, but without "www." in front.


Enable Google Analytics integration in your Bookeo account

​1. In your Bookeo account, click on Marketing>Conversion tracking and analytics

2. Tick the Enable the integration with Google Analytics checkbox

3. Input your Google Analytics account ID in the Google Analytics ID field. 

4. Save


​Enable web site integration

Make sure to enable the web site integration (via the widget or plugin).

Thanks to this integration, Google Analytics can track a customer's browsing session even as he or she moves from your web site to your booking page.

That's it! Your traffic will now start being tracked automatically by Bookeo, and you can view it even in real time in your Google Analytics console.


It's all about e-commerce

Every time a booking is confirmed, a prepaid package is purchased, a membership is enrolled into, etc... Bookeo will track an E-commerce transaction in your Google Analytics account.

Make sure to enable E-commerce tracking in your Analytics account to get more insight about your sales, including how many sales each traffic source generated, how many sales for each product your received, and so on.

To learn more about Google Analytics E-commerce, see http://support.google.com/analytics/bin/answer.py?hl=en&answer=1037249&topic=1037061&ctx=topic