Correct tracking and access to data analytics is essential for marketers and revenue managers. 

The Userguest Dashboard is tailored towards the hotel business and provides essential insights about the website and booking engine performance as well as the markets’ booking behaviour. 

In case your hotel relies on Google Analytics for your performance analysis it’s important to make sure you are collecting the right data. Many times hotels fail at collecting the correct traffic information because their Google Analytics cross-domain measurement isn’t set up correctly. This means that a visitor who lands on your website, and then lands on the booking engine, would be reported as two different visitors instead of one. Therefore, all the data related to the booking behaviour is not accurate.

What is Cross-domain measurement?

Cross-domain measurement is a Google Analytics feature that allows you to see sessions from two related sites (such as your hotel website and your hotel booking engine) as a single session, rather than as two separate ones. 

Before you start

Add the booking engine domain name in Google Analytics under Admin > Tracking Info > Referral Exclusion list as shown below.

Manual set up of Google Analytics cross-domain tracking

Customise your code snippet

The below code snippet needs to be customized. There are 3 variables you will need to check and update:

Set up cross-domain measurement using analytics.js

<!– Google Analytics –>



(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),



ga(‘create’, ‘UA-xxxxxxxxx-x’, ‘auto’, {allowLinker: true});

ga(‘require’, ‘linker’);

ga(‘linker:autoLink’, [““, ““], false, true);


<!– End Google Analytics →

Set up cross-domain measurement using gtag.js

<!– Global site tag (gtag.js) – Google Analytics –>

<script async src=””></script>


  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag(‘js’, new Date());

  gtag(‘config’, ‘UA-xxxxxxxxx-x’, {

  ‘linker’: {

    ‘domains’: [‘‘, ‘‘]




Embed your customised code snippet into your website

If you manage your own website, paste this code snippet within the body of your site, and do not make any further alterations to the code snippet as this may cause the integration to fail.

How to set up your cross-domain tracking using Google Tag Manager

In case that you are using Google Tag manager you won’t need to perform the above snippet code customization. Simply watch the video below or follow the steps in this official Google Support article

Test your integration

Make sure to test that your cross-domain traffic is working correctly. 

  • Check the Realtime report – when a user navigates from the website to the booking engine Google Analytics should count it as one user instead of two separate users.
  • Check the Traffic sources to the booking engine page – if the only traffic source is Direct visits your cross-domain measurement isn’t set up correctly. 

You can always compare the Google Analytics data to the data collected on your Userguest Dashboard to make sure your tracking is correct.

Reach out to our support team if you need help!