Google Analytics for your Cloudbeds Booking Engine

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.

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

Ready to get started? Jump in directly to the connection process here.


What is Google Analytics 4 (GA4)?

Google Analytics 4 (or GA4) is the new measurement tool that collects both website and app data to better understand the customer's journey throughout your business.

  • Google Universal Analytics has been replaced by Google Analytics 4 (GA4), Google's next generation measurement solution. Universal Analytics (UA) stopped on July 1, 2023 (July 1, 2024 for Analytics 360 properties). Learn more about this update here.
  • Cloudbeds continues supporting Google Universal Analytics (UA), and allows users to connect to new Google Analytics 4 as well. Reach out to our Support Team if you need any assistance with the connection process.
  • Useful links:
GA4 - How it works

Google Analytics 4 collects event-based data from both websites and apps. For each eligible Universal Analytics goal selected, the Goals Migration Tool automatically does the following in your connected Google Analytics 4 property:

  • Creates a new event rule
  • Marks the created event as a conversion
GA4 - Basic concepts

The following basic concepts are part of the Google Analytics' measurement system. Learning about these concepts offers a better understanding of how these work to track your business data:

Learn about other Google Analytics concepts here.

Connect Google Analytics with Cloudbeds PMS

🔴 If you do not have a Google Analytics account yet:

  • Create your account in 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:

Before getting started
  • Conversion tracking won’t work well when the booking engine is configured inside an iframe on a website. Additional codes and configuration will be needed with the assistance of a web developer or third party marketing company.
  • 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.
Step 1 - Enter your Tracking ID (UA) or your Google Tag ID (GA4) in Cloudbeds PMS
  1. Click on the Account icon and go to Settings
  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 Primary Domain
    • Your website domain is the highlighted part of this example: as shown below
  6. Click Save

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.

The information sent to Google Analytics are:

  • Reservation Number
  • Property Name
  • Reservation Total
  • Reservation Taxes
  • Room Types
1.1 Cross-domain tracking setup

Cross-domain tracking is essential if you have a website for your property and have a way to redirect guests to the booking engine in a form of a Book Now button or a Date picker widget.

If you do not have a website and want to track the activity on the booking engine only, you may skip this section and go to the next step.

As the first point of contact to your guests, it is recommended to add Google Analytics tracking to your own website. We suggest using Google Tag Manager. Also, cross-domain tracking should be enabled since the Cloudbeds Booking Engine is hosted in a different domain as yours.

To do so, follow the instructions below.

1.2 Configure Google Tag Manager

As presented on the Google's Help Guide, the Google Tag Manager is a tag management system (TMS) that allows you to quickly and easily update measurement codes and related code fragments collectively known as tags on your website or mobile app.

If you already have a Google Tag Manager container, review the instructions below and update your settings accordingly.

  1. In the Google Workspace, click Tags from the navigation menu
  2. Click New to create a new Analytics Tag
  1. Name the tag (example: Universal Analytics)
  2. Under Tag Configuration, click the icon to begin setup.
  3. Choose Google Analytics: Universal Analytics from the list
  1. Select the Track Type as Page View
  2. Check the box Enable overriding settings in this tag
  3. Enter your Google Analytics Tracking ID 
  4. Under More Settings > Fields to Set, add a field. Select the field name allowLinker and set its value to true.
  1. Under E-commerce, select True for Enable Enhanced E-commerce Features and check the Use Data Layer box
  2. Under Cross-Domain Tracking > Auto Link Domains enter and select True for Decorate Forms
  1. Google Analytics tag should trigger on all pages. Select All Pages in the Triggering.
Step 2 - Install Google Tag Manager on your website
WordPress Instructions

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:

  1. On your WordPress dashboard, click on Plugins on the menu
  2. Click Add New
  3. Search for Google Tag Manager For WordPress
  4. Click on Install and then Activate

After installing, click on the link that is displayed on the top of the page to enter your GTM ID.

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

Installing Google Tag Manager manually

If your website is not designed for WordPress or services like Wix and Squarespace, you may need to enter the code manually. Follow the instructions provided by Google in this article

Step 3 - Test your configuration

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.

Step 4 - Important considerations
  • By adding your Google Analytics tracking code in your Cloudbeds PMS configuration, you will only be tracking visitors and reservations from the moment the visitor arrives at the booking engine. To track visits to your own website you must add the tracking codes to it as well.
  • 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 its tracking properly.
  • Check all information about reservation amount, user interaction, 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 you can only see the bookings engine page as visited on your reports, you must configure Google Analytics in your website as well and it must include cross-domain instructions as explained on this article above.

Google Analytics 4 (GA4) tracking troubleshooting

Troubleshooting Google Analytics 4 (GA4) tracking issues can involve checking various aspects of the setup, including Google Tag Manager (GTM) configurations. Here's a step-by-step guide to help you troubleshoot GA4 tracking issues with GTM for your property:

GA4 troubleshooting checklist

Troubleshooting step Brief description

1. 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

2. 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.

3. 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

4. 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.

5. 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.

6. 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.

7. Data layer variables

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

8. Review GA4 settings

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

9. 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.

10. Check for browser console errors

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

11. Update GA4 libraries

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

12. 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.

13. 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.

14. 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. 

To learn about Google Analytics (for Groups Booking Engine), see the following articles:

Was this article helpful?
3 out of 6 found this helpful



Please sign in to leave a comment.