This document will provide you with all information you need in order set up the google analytics tracking

Before you begin

You must activate the developer module for your bookingkit account
You should have a google analytics account if you do not have one you can create one here for free.

1. Setting up the tracking in your bookingkit account

Adding this code in your account settings will allow you to track the users as they go through the bookingkit checkout so you can review the visits of your customers as they purchase your products.

  • Copy this code and paste it in your bookingkit account settings for Checkout tracking code
  • Make sure you replace the google_tracking_id with your tracking id. The tracking ID is a string of this format: UA-xxxxxxxx-x. If you are unsure of where to find your google tracking id see more information about it here.
  • Also change the url in the code with your own website url, do not provide the protocol (http://www.your-website-url.com), just the url (www.your-website-url.com)

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxxx-x', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['eu5.bookingkit.de', 'www.your-website-url.com']);
ga('send', 'pageview'); 
</script>

2. Tracking code on your webpage

If you want to track your visitors starting from the moment they visit your site, before they even open the checkout process you can add the analytics code to your own website as well. We recommend you do this in order to have a better understanding of how your visitors interact with your website.

  • Insert the same script as above to your website before the closing </head> tag.
  • If you cannot add it in the head of your web page then you may add it before the closing </body> is an acceptable option
  • If you already have the google analytics code on your page you can replace your current tracking code with this one.
  • Make sure you only include this tracking script once per page

3. Check your tracking code

Once you have completed the steps above you can see the tracking in action if you check the real-time report in google analytics: https://analytics.google.com

Suggested next step: set up google analytics e-commerce tracking