Skip to main content
All CollectionsDirect bookingSetup and configurationGoogle Analytics
How to connect Google Analytics 4 to your booking engine
How to connect Google Analytics 4 to your booking engine

Integrate Google Analytics 4 with your booking engine to help track its traffic, performance, and conversion.

Updated over 2 weeks ago

Before you start:

To integrate Google Analytics 4 with your booking engine, you must first create a Google Analytics account, set up a property and copy the Measurement ID for later use. If you are new to Google Analytics 4, we recommend reading this Google help article.

Integrate Google Analytics 4 with your booking engine

Step 1: Configure your property's website:

  1. In your SiteMinder platform, click on your property name > Property settings > Property details > Contact.

  2. Click on the Contact section's edit button.

  3. Under Website, enter the URL of the page leading to your integrated booking engine, where you want to track conversion data from.

Step 2: Integrate Google Analytics 4 in Direct booking:

  1. In your SiteMinder platform, click on Direct booking > Configuration > Plug-in apps > Google Analytics 4.

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

  3. Click on Enable.

Your clicks and conversions will now be tracked by Google Analytics 4, and you can analyse the data in the Google Analytics 4 platform.

Advanced post-integration setup

For support with advanced setup, we recommend:

Enable cross-domain tracking between your website and the booking engine

If your booking engine has domain masking for the Domain name (for example, 'reservations.myhotelname.com'), you can skip this step.

To set up cross-domain tracking:

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

  2. When adding a condition under Include domains that match the following conditions:

    • For Match type, choose Contains

    • In the Domain field, add one of the following depending on your property location:

      • For APAC — book-directonline.com

      • For EMEA and AMERS — direct-book.com

  3. If using a third-party payment gateway, repeat the same process and add your payment gateway's domain:

    • BimoPay — bimopay.com

    • Paydollar — paydollar.com

    • PayPal — paypal.com

    • Paystack — checkout.paystack.com

    • PesoPay — pesopay.com

    • SiamPay — siampay.com

To increase security and ensure PCI Compliance, we use a separate web domain to process payments through the booking engine.

Embed your customised code snippet on your website

We recommend contacting a webmaster or one of our digital marketing partners to paste the code snippet into your site. Do not alter the code snippet, as it may cause integration failure.

To copy the code snippet from Google Analytics 4:

  1. In Google Analytics 4, click on Admin.

  2. Under the Property column, click on Data streams.

  3. Click on a Web data stream you've already created.

  4. Click on the View tag instructions button in the top left corner of the slider.

  5. Click on Install manually.

  6. Copy the code using the copy icon in the text area.

You then need to take the code snippet from Google Analytics 4 and paste it into your property’s webpage. If you are using Website Builder, follow these steps:

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

  2. Paste the code snippet into the entry field.

  3. Click on Save.

  4. Click on Publish. (Changes may take up to 15 minutes to go live.)

Note:

  • If not using Website Builder, contact your website administrator to add the code snippet.

  • Test your integration regularly to ensure it works correctly.

  • Data will appear in Google Analytics 4 up to 48 hours after integration — to view it, go to Google Analytics 4 > Reports > Acquisition > All Traffic > Source / Medium, and select 'e-commerce' to see traffic from various sources.

Did this answer your question?