All Collections
Direct booking
Set up Google Analytics 4 to track your Booking Engine’s conversion
Set up Google Analytics 4 to track your Booking Engine’s conversion
Updated over a week ago

💡 Important to know:

Why should you integrate Google Analytics 4 with your Booking Engine?

Once integrated, Google Analytics 4 can improve the tracking and reporting of your property's Booking Engine — from its traffic, funnels and conversion rates, to the return on investment (ROI) in marketing.

And because the Booking Engine supports source attribution modelling with its Google Analytics 4 integration, properties can easily identify their most successful marketing campaigns and special offers, and in the process, hone their strategies.

With cross-domain tracking enabled, Google Analytics 4 can also track Booking Engine visitors across single continuous sessions on two or more related websites — something that can help ensure your purchases are attributed to an original source (Google Search, Facebook, etc.) rather than a payment processor’s website. For example, if a customer visits your Booking Engine and attempts to process a payment, they may be redirected to a payment processor’s website — which is hosted on another domain — to enter their credit card details and complete their payment before being redirected back to your website, so if cross-domain tracking is implemented between your Booking Engine and the payment processor’s website, the original source will be attributed, thereby improving the accuracy of your data.

💡 Note:

  • To integrate Google Analytics 4 with your Booking Engine, you must first create a Google Analytics account, then set up a property and copy the Measurement ID (which will be used later).

  • If you are new to Google Analytics, we recommend reading this Google help article.

  • Our support team will only be able to guide you through the steps that need to be done on our side; not from the side of Google Analytics’ extranet.

Integrate Google Analytics 4 with your Booking Engine

Step 1: configure your property's website

  1. Go to our 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 that you want to track conversion data from. (This will be the domain that guests land on via SEO and are able to use as an entry point to the Booking Engine.)

Step 2: integrate Google Analytics 4 with your Booking Engine

  1. Go to our platform > Direct booking > Configuration > Plug-in apps > Google Analytics 4.

  2. Enter your Measurement ID — this can be found in your Google Analytics 4 account. (For more information, follow Google’s guide, Set up Analytics for a website and/or app.)

  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

⚠️ If you are not tech savvy, we strongly advise contacting a webmaster or one of our expert digital marketing partners to assist you with the following steps.

Step 1: enable cross-domain tracking between your website and the Booking Engine

⚠️ Note:

  • If you are not tech savvy, we strongly advise contacting a webmaster or one of our expert digital marketing partners and asking them to help you customise the Google Analytics 4 code snippet. DO NOT make further alterations to the code; it may cause the integration to fail.

  • If your Booking Engine has domain masking for the Domain name — for example, ‘reservations.myhotelname.com’ — you can skip this step.

First follow the steps in the ‘Set up cross-domain measurement via the Admin’ section of this Google Analytics 4 article, then update Google Analytics 4 to enable cross-domain integration, otherwise Google Analytics 4 reports will not work properly.

When following the guide and adding a condition under Include domains that match the following conditions follow the below steps.

  1. For Match type, choose Contains.

  2. In the Domain field, add one of the below depending on the location of your property:

    • For APAC — book-directonline.com

    • For EMEA and AMERS — direct-book.com

  3. If you are using a third-party payment gateway, repeat the same process outlined above, and for Domain, add your payment gateway’s domain, for example:

    • Paystack — checkout.paystack.com

    • Paydollar — paydollar.com

    • SiamPay — siampay.com

    • PesoPay — pesopay.com

    • PayPal — paypal.com

⚠️ Note:

  • To increase security for our customers and help ensure PCI Compliance, we are now using a separate web domain to process payments through the Booking Engine.

  • If your existing Google Analytics 4 tracking code has been customised, you may need to make more modifications to the code — we strongly advise contacting a webmaster or one of our expert digital marketing partners to help you do this, as making further alterations to the code may cause the integration to fail.

Step 2: embed your customised code snippet on your website

⚠️ If you are not tech-savvy, we strongly recommend contacting a webmaster or one of our expert digital marketing partners who will paste the code snippet into the body of your site. DO NOT make further alterations to the code snippet, as it may cause the integration to fail.

Follow these steps to copy the code snippet from Google Analytics 4:

  1. On Google Analytics 4, click on Admin.

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

  3. You should have already created a Web data stream, so click on a Web data stream. (A slider will open with the Web stream details.)

  4. Click on the View tag instructions button in the top left corner of the slider. (Another slider will open.)

  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 our platform > My apps > Website Builder > Advanced settings > Third-party widget.

  2. Paste the code snippet into the entry field.

  3. Click on Save.

  4. Click on Publish. (It may take up to 15 minutes for the changes to go live.)

💡 Note:

  • If you are not using our Website Builder, contact your website administrator to add the code snippet to your property’s website.

  • We advise testing your integration regularly to ensure it is functioning correctly.

  • Data will start coming through to Google Analytics 4 from 24 to 48 hours after integrating — to see 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?