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.
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.
- Learn how Google Analytics 4 can be used for your business and how to get started - Introducing Google Analytics 4
- What is the difference between Google Universal Analytics and Google Analytics 4 (GA4)? Do they have the same concepts and functionalities? - Learn more here: Universal Analytics versus Google Analytics 4 data
- Important note: If you already have Google Universal Analytics, make the switch to Google Analytics 4, as per Google's advice - Learn How to migrate to Google Analytics 4
- 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:
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:
- 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.
- Click on the Account icon and go to Settings
- Go to the Booking Engine section
- Click on the Analytics tab
- Enter your Google Analytics Tracking ID. Learn more about where can I find my Google Tag ID?
- Enter your website Primary Domain
- Your website domain is the highlighted part of this example: https://www.your-website.com as shown below
- 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
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.
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.
- In the Google Workspace, click Tags from the navigation menu
- Click New to create a new Analytics Tag
- Name the tag (example: Universal Analytics)
- Under Tag Configuration, click the icon to begin setup.
- Choose Google Analytics: Universal Analytics from the list
- Select the Track Type as Page View
- Check the box Enable overriding settings in this tag
- Enter your Google Analytics Tracking ID
- Under More Settings > Fields to Set, add a field. Select the field name allowLinker and set its value to true.
- Under E-commerce, select True for Enable Enhanced E-commerce Features and check the Use Data Layer box
- Under Cross-Domain Tracking > Auto Link Domains enter cloudbeds.com and select True for Decorate Forms
- Google Analytics tag should trigger on all pages. Select All Pages in the Triggering.
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
- Click Add New
- Search for Google Tag Manager For WordPress
- 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.
- 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:
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: