Important to know:
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 4, 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 from our side; not from Google Analytics 4’s side.
Integrate Google Analytics 4 with your booking engine
Step 1: configure your property’s website
Go to My Apps > Direct Booking > Setup > Property > General.
Click on the Contact section’s edit button.
Under Website, enter the URL of the page leading to your integrated booking engine, where 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 your booking engine.)
Step 2: Integrate Google Analytics 4 in Direct booking
Go to My apps > Direct booking > Setup > Integrations > Tracking > Google Analytics 4.
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.)
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 further support with the ‘Advanced post-integration setup’ section, we recommend the following:
Visiting the Google Analytics 4 online knowledge base;
Contacting one of our expert digital marketing partners;
Contacting a Google-certified partner that offers professional services for setting up and integrating Google Analytics 4. (Please note that this service is offered by third parties and may incur additional costs.)
Step 1: 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.
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.
When following the guide and adding a condition under Include domains that match the following conditions follow the below steps.
For Match type, choose Contains.
In the Domain field, add one of the below depending on the location of your property:
For APAC — book-directonline.comFor EMEA and AMERS — direct-book.com
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:
BimoPay — bimopay.com
Paydollar — paydollar.com
PayPal — paypal.comPaystack — checkout.paystack.com
PesoPay — pesopay.comSiamPay — siampay.com
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.
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.
We also recommend contacting them if your existing Google Analytics 4 tracking code has been customised, and you may need to make more modifications to the code.
Follow these steps to copy the code snippet from Google Analytics 4:
On Google Analytics 4, click on Admin.
Under the Property column, click on Data streams.
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.)
Click on the View tag instructions button in the top left corner of the slider. (Another slider will open.)
Click on Install manually.
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:
Go to My apps > Website Builder > Advanced settings > Third-party widget.
Paste the code snippet into the entry field.
Click on Save.
Click on Publish. (It may take up to 15 minutes for the changes to go live.)
Note:
If you are not using 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 up 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.