Integrating Google Analytics Universal

This article will walk you through the four steps required to connect your ThinkReservations account with your Google Analytics account. Make sure you perform each step precisely as indicated below to be sure it functions properly.

Step 1: Update your own website.
Step 2 and 3: Update your Google Analytics.
Step 4: Update your ThinkReservations account.

Step 1: Integrate Google Analytics Universal with your website and enable cross-domain tracking

Add the following block of code to every page of your website.  It should be placed right before the <head> tag.  Please make sure to replace UA-XXXXX-X with your web property ID. This is the only exception where you should modify the below code. Modifications to the below code are done at your own risk!

<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-XXXXXXX-X', 'auto', {
'allowLinker': true
});
ga('require', 'linker');
ga('linker:autoLink', ['thinkreservations.com'], false, true);
ga('send', 'pageview');
</script>


Additional Information about Cross Domain Tracking

For additional information about cross Domain Tracking for Google Analytics Universal, please refer to Google's Documentation

Step 2: Enable E-commerce tracking inside Google Analytics

  1. Log into Google Analytics.
  2. Navigate to the desired view (typically, you will only have one view to select from).
  3. Click the "Admin" button in the bottom left navigation.
  4. In the "View" column, select "Ecommerce Settings."
  5. Toggle the "Enable Ecommerce" option to ON.

Step 3: Add proper domains to the Referral Exclusion List

It is important to add both your website domain and the secure.thinkreservations.com domain to the Referral Exclusion List.

To access the Referral Exclusion List:

  1. Log into Google Analytics.
  2. Navigate to the desired view (typically, you will only have one view to select from).
  3. Click the "Admin" button in the left-hand navigation.
  4. In the "Property" column, select "Tracking Info" and then "Referral Exclusion List."

Once you are on the Referral Exclusion List, verify that the following domains are present:

  • secure.thinkreservations.com
  • The domain of your website (Example: yourdomain.com - notice there is NO www.)

If you need to add a domain name to the list, you may do so by clicking the "Add Referral Exclusion" button.

Step 4: Configure Google Analytics in ThinkReservations

  1. Log into ThinkReservations.
  2. Click on "Settings" located in the black bar at the top of the screen.
  3. Choose "Business Settings" on the left-hand side.
  4. Scroll to the bottom to find the "Google Analytics" configuration.
  5. Choose "Universal."
  6. Add your web property ID to the "Account ID" field.

This is an example of what it should look like:

    


S
Sean is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.