Connect Google Analytics with Cloudbeds PMS

Overview

In Google's words:

Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business.

Enter a Google Analytics Tracking ID into Cloudbeds PMS to track your booking engine visits and conversion rate and collect other data. This article will walk you through the basics of adding a Google Analytics tracking code to your Cloudbeds Booking Engine page.

Before getting started

  • Keep in mind that conversion tracking won’t work well when the booking engine is configured inside an iframe on a website. A web developer or third-party marketing company can assist with additional codes and configuration.
  • Old Booking Engine iframe embeds are not compatible with Booking Engine Plus. You can update to the Cloudbeds Booking Engine Immersive Experience; and/or widgets and/or redirect using the Book Now button.' If you are transitioning to the latest Cloudbeds Booking Engine Plus, see the Transition to Booking Engine Plus - Checklist and FAQ.
  • If a Book Now button that redirects the guest to your Booking Engine is configured, having the cross-domain tracking setup from the steps below, conversions will be tracked properly.
  • If you do not have a Google Analytics account yet: Create your account on the Google Analytics website: Welcome to Google Analytics. Once your Google Analytics account has been successfully created, access Cloudbeds PMS and follow the steps below to get started.
  • If you already have a Google Analytics account: Continue with Step 1 to connect Google Analytics with your Cloudbeds PMS account. Access Google's Help portal if you need any assistance with your Google Analytics setup.

Important information

  • This article applies to the old version of the Cloudbeds Booking Engine, which will eventually be replaced by the latest Cloudbeds Booking Engine Plus.
  • If you are already using the latest Booking Engine Plus, we recommend having your Google Analytics 4 ID placed in the Analytics settings page of the Booking Engine, as per the instructions in Step 1.
  • For more information about Booking Engine Plus and Google Analytics, check out this article.

Connect Google Analytics with Cloudbeds PMS

Step 1- Enter your Tracking ID/Google Tag ID in Cloudbeds PMS
  1. Click on the Account icon Account menu.pngand go to Settings Settings.png
  2. Go to the Booking Engine section
  3. Click on the Analytics tab
  4. Enter your Google Analytics Tracking ID. Learn more about where can I find my Google Tag ID?
  5. Enter your website's Primary Domain. Your website domain is the highlighted part of this example: https://www.your-website.com, as shown below
  6. Click Save

Connect google analytics 1.png

Connect google analytics 2.png

By adding your tracking code on Cloudbeds, your Google Analytics account will start tracking any visits your booking engine receives and also reservation details when a visitor finalizes a booking.

Information sent to Google Analytics

  • Reservation Number
  • Property Name
  • Reservation Total
  • Reservation Taxes
  • Room Type
Step 2 - Cross-domain tracking and Google Tag Manager
Cross-domain tracking setup Google Tag Manager configuration
  • Cross-domain tracking is essential if you have a website for your property and a way to redirect guests to the booking engine, such as a Book Now button or a Date picker widget.
  • Cross-domain tracking should be enabled since the Cloudbeds Booking Engine is hosted in a different domain than yours. To do so, follow the instructions in this article from Google's Help.
  • If you do not have a website and want to track activity only on the booking engine, skip this section and proceed to configure your Google Tag Manager.
  • As your guests' first point of contact, it is recommended that you add Google Analytics tracking to your website. We suggest using Google Tag Manager. 
  • In the Cross-domain measurement settings -> Cross-domain Linking Configuration, we recommend the following setup:
    • Match type: 'Contains'
    • Domain: hotels.cloudbeds.com (if your Booking Engine link starts with hotels.cloudbeds.com or us2.cloudbeds.com)
    • Include your domain name; see the example below and check Google's detailed instructions here:

Connect google analytics 3.png

  • For the Cloudbeds domain, check which one is used for your Booking Engine by accessing Settings Settings.png and following the steps below:

    1. Click on the Booking Engine section

    2. Go to Summary

    3. Find the Booking Engine link on the page

Connect google analytics 4.png

Step 3 - Install Google Tag Manager on your website
WordPress Wix and Squarespace  Google Tag Manager (manually)

If your website is built on WordPress, we recommend you use this plugin to add your tracking code. To install the plugin, follow these instructions:

  • On your WordPress dashboard, click on Plugins on the menu and click to add a new plugin. Search for Google Tag Manager For WordPress, click on Install, and then Activate

Connect google analytics 8.jpg

  • After installing, click on the link at the top of the page to enter your GTM ID:

Connect google analytics 9.jpg

  • Enter your GTM ID on this page and Save. You can find your GTM ID on your Workspace on the Google Tag Manager website:

Connect google analytics 10.jpg

Step 4 (Optional) - Use Google Tag Manager (GTM) with Cloudbeds Booking Engine

1. To use Google Tag Manager (GTM) with the Cloudbeds Booking Engine, access your GTM account and copy and paste the Google Tag Manager code into your property's Booking Engine Customization page. 

Click on the Google Tag Manager tag code at the top, right below the Search bar:

Google Tag Manager image

2. If you are using the latest Cloudbeds Booking Engine Plus, the code below must be retrieved from GTM and added to the Booking Engine Plus JavaScript field:

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-YOUR_ID_HERE');</script>
<!-- End Google Tag Manager -->

GTM image

3. If using the old version of the Cloudbeds Booking Engine, add the code to the Custom Meta Tags and Custom Meta Tags (Confirmation Page Only) fields instead:

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-YOUR_ID_HERE');</script>
<!-- End Google Tag Manager -->

GTM image 2

4. (Optional) To test your website, copy and paste your Booking Engine URL and paste it in the corresponding field: 

GTM image 3

Learn more about the differences in the customization fields of each Booking Engine version by clicking here.

Final steps and troubleshooting

Final steps

To make sure everything is configured correctly, use the Google Tag Assistant extension for Chrome. Learn more about the Google Tag Assistant in the video below:

To learn how to test your Google Analytics setup, read this article from the Google Analytics Help Guide.

💡To keep in mind: 

  • By adding your Google Analytics tracking code to your Cloudbeds PMS configuration, you will only track visitors and reservations from the moment they arrive at the booking engine. You must also add the tracking codes to your website to track visits to it.
  • If you don't see any E-commerce or Goals results in your Analytics report, check if you have received any website reservations during that period. If you have not received any reservations, you could also make a test reservation to verify that it is tracking properly.
  • Check all information about reservation amount, user interaction, and source from within Google Analytics reports. The tracking information is not available in Cloudbeds reports.
  • If you have configured Google Analytics in Cloudbeds PMS but can only see the bookings engine page as visited on your reports, you must configure Google Analytics on your website as well, and it must include cross-domain instructions, as explained in Step 1.
  • If you encounter any issues, refer to the Troubleshooting checklist below to fix them.
Troubleshooting

✅ Ensure the GA4 configuration in the Google Tag Manager

 

Confirm that your Google Analytics 4 configuration is correctly set up in your Google Tag Manager account. Remember to verify that the GA4 tag is added to the container and configured with the correct GA4 Measurement ID; take a look at the help article from Google here

 

✅ Check trigger configurations

 

 

Confirm that the triggers associated with your GA4 tag are correctly configured. For hotel-related tracking, consider using triggers on specific pages like the booking confirmation page or other relevant interactions. For more information, take a look at the following help article from Google here.

 

✅ Verify the installation on your hotel website

 

Check if the GTM container code is correctly implemented on all pages of the hotel website. Ensure it's placed immediately after the opening <body> tag. Confirm that the GA4 tag fires on the desired pages by using the GTM Preview mode, and feel free to check the help article from Google here

 

✅ Debugging in GTM Preview mode

 

 

Use the GTM Preview mode to debug tag firing and check for any errors. Inspect the data layer and events triggered on different pages to ensure the expected data is being sent to GA4. Help article from Google here.

 

✅ Examine GA4 real-time reports

Check GA4 Real-time reports for live data. This helps confirm that data is reaching GA4 in real time. Look for any errors or anomalies in the real-time event stream related to hotel-specific interactions.

✅ Check GA4 debug view

Utilize GA4 DebugView to inspect the events and parameters being sent to GA4 in real time. This can provide insights into the data being collected.

 

✅ Data layer variables

If you're using data layer variables in GTM, ensure that they are correctly populated with relevant information, such as transaction details, hotel names, or other custom dimensions.

✅ Review GA4 settings

Double-check GA4 settings for your property to ensure that custom dimensions, metrics, and other configurations are accurately defined.

 

✅ Verify cross-domain tracking

If the hotel website spans multiple domains or subdomains, ensure that cross-domain tracking is set up correctly in both GA4 and GTM.

✅ Check for browser console errors

Inspect the browser console for any errors related to GA4 tracking. Addressing these errors can often resolve tracking issues.

✅ Update GA4 libraries

Confirm that the GA4 libraries in GTM are up to date. Outdated libraries may lead to compatibility issues.

✅ Collaborate with website developers

Engage with the website developers to ensure that there are no conflicting scripts or issues on the website that might interfere with GA4 tracking.

✅ Document and test

Keep a detailed log of changes made during the troubleshooting process, and test each modification to gauge its impact on GA4 tracking.

✅ Follow-up with Cloudbeds

If the above troubleshooting is still yielding an issue with tracking, follow up with our team, and we will escalate the issue to our development team for further investigation.

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.