Our online booking system is fully integrated with Google Analytics. It sends page views during the user journey and pushes an itemized basket into a purchase event upon booking completion.
This allows you to set up Goals, Funnels, and other Analytics tools to better understand customer behavior and track conversions.
Below is a technical overview of how the integration works and the key configuration steps you’ll need to follow.
Configuration
To enable tracking, we’ll need the gtag ID (Measurement ID) for your main website. This ID is then used to initialize Google Analytics within the booking system, as shown below:
Once initialized, the system sends a page view event on every URL change:
You can use these URL paths to track specific stages in the booking journey. In particular, the booking confirmation page (/booking/confirmation
) can be used to trigger conversion goals.
In addition, we fire a purchase event when a booking is completed. This event includes an itemized breakdown of the booking and the total value:
Cross-Domain Tracking
Because the booking system is hosted on a different domain than your main website, you’ll need to configure Google Analytics to support cross-domain tracking. Without this step, events from the booking system will not be recorded correctly.
To do this, go to:
Tag Settings > Configure Your Domains
Add both the primary website and the booking system domains here:
Once this is set up and the gtag
is properly installed on both your main site and the booking system, you should begin seeing data appear in the Realtime section of Google Analytics.