This document will provide you with all information you need in order set up the e-commerce google analytics in order to track all the purchases on your website

Before you begin

Make sure you have successfully the google analytics tracking is working. If you are not sure about this set review the steps explained here.
You must enable e-commerce tracking in your analytics account, you will find help on setting this up here.

1. adding the conversion tracking script to your bookingkit account

Adding this code will allow you to track the purchase value on your website, giving you a better understanding of the buying behavior of your customers so you can target your marketing campaigns more efficiently

  • Copy this code and paste it in your bookingkit account settings for Conversion Tracking
  • There is no need to change the code below, the values in the square brackets will be replaced by bookingkit with the transaction specific values
  • If you like you can change the affiliation of the campaigns. On default the affiliation is "my_website" but you may change it to your company name or website name
  • In order to track multiple events in a successful order, wrap the part of the code with the tag [EVENTS] and close with [/EVENTS] where the items are tracked. Items are usually tracked where [EVENT-ID] and [EVENT-NAME] are present in the code. These tags are also applicable when tracking Facebook.
  • Note: there is no need to repeat the google page tracking script for the conversion tracking script as the tracking script already is loaded on all the checkout pages including the success page. The tracking code will always be executed before the conversion script.

<script>
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', { 'id': '[TRANSACTION-ID]', 'affiliation': 'my_website', 'revenue': '[TRANSACTION-TOTAL]'} );
[EVENTS]
ga('ecommerce:addItem', { 'id': '[TRANSACTION-ID]', 'name': '[EVENT-NAME]', 'sku': '[EVENT-ID]'} );
[/EVENTS]
ga('ecommerce:send');
</script>

2. Check your conversion tracking script

After adding the script and receiving your first order from your website with the new code implemented you should allow for 24 hours so that the e-commerce results will be displayed in your google analytics account