Skip to main content

How to connect Google Analytics 4 to your booking engine

Updated over 4 months ago

Overview

Track your booking engine's performance and understand guest conversion patterns by integrating Google Analytics 4. This integration provides valuable insights into traffic sources, user behaviour, and booking conversion rates.

Before you begin

  • Create a Google Analytics account if you don't have one

  • Set up a Google Analytics 4 property for your website

  • Note down your Measurement ID (you'll need this later)

  • If you’re new to Google Analytics 4, learn the basics here

Integrate Google Analytics 4 with your booking engine

Step 1: Configure your property website

  1. Navigate to Setup > Property details

  2. Click the pencil icon in the Contact section

  3. Enter your website URL in the Website field (this is the page that leads to your booking engine)

  4. Click Save

Step 2: Connect Google Analytics 4

  1. Navigate to Direct booking > Configuration > Plug-in apps

  2. Click on Google Analytics 4

  3. Enter your Measurement ID from your Google Analytics 4 account

  4. Click Enable

Your integration is now active. Google Analytics 4 will now track clicks and conversions through your booking engine.

Enable cross-domain tracking

Skip this step if your booking engine uses domain masking (e.g., 'reservations.yourhotel.com').

If your booking engine uses a different domain than your website, follow these steps:

  1. Follow the steps in the 'Set up cross-domain measurement via the Admin' section of this Google Analytics 4 article

  2. When adding domain conditions:

    1. Set Match type to Contains

    2. Add the appropriate domain based on your region:

      1. APAC region: book-directonline.com

      2. EMEA and AMERS regions: direct-book.com

  3. If using a third-party payment gateway, add their domain too:

    1. BimoPay: bimopay.com

    2. Paydollar: paydollar.com

    3. PayPal: paypal.com

    4. Paystack: checkout.paystack.com

    5. PesoPay: pesopay.com

    6. SiamPay: siampay.com

Add tracking code to your website

Get your tracking code

  1. In Google Analytics 4, go to Admin

  2. Under Property column, select Data streams

  3. Click on your web data stream

  4. Click View tag instructions

  5. Select Install manually

  6. Copy the provided code

Add Code to Website Builder

If you use Little Hotelier’s Website Builder:

  1. Navigate to Website Builder > Advanced settings > Third-party widget

  2. Paste the code

  3. Click Save and then Publish

  4. Allow up to 15 minutes for changes to take effect

Verify your integration

  1. Wait 24-48 hours for data to appear

  2. In Google Analytics 4, go to Reports > Acquisition > All Traffic > Source/Medium

  3. Select the e-commerce segment to view booking engine traffic

Advanced configuration setup

Did this answer your question?