Connecting Google Analytics to your Vacation Labs Website
Vacation Labs allows you to integrate Google Analytics with a few steps.
Quick Overview
Optional: Create Google Analytics account and Property
Get tracking code from Google Analytics:
Click on the Admin button located at the bottom left.
Select Property Settings > Data Collections and Modifications > Data Streams.
Choose the specific Data Stream.
Click on "View Tag Instructions" and select "Install manually."
Copy the Google tag.
Navigate to the Vacation Labs login and go to Website > Advanced Settings. Paste the copied code into the Header/Footer section.
Confirm that you can see the tracking code on your website
Confirm that you can see visitor activity & reports on Google Analytics
Before you start
You can skip this section if you have already created a Google Analytics account and Property/Site
If you don’t have a Google Analytics account, you’ll need to create one first.
Create Google Analytics account and Property
Create an account. Enter the name of the account you wish to create.
2. Create a property.
3. The next step is to describe your business; mention the category (Travel) and business size.
4. After that, choose your business objectives and click on "create".
Getting the GA tracking script
On the homepage, you will see the option to set up a data stream. Click on "Web" and set up the data stream by adding your website URL and stream name, then click on "Create".
If you have already configured the above step while setting up Google Analytics, then you need to click on the "Admin" button located at the bottom left. Select "Property Settings" > "Data Collections and Modifications" > "Data Streams".
Choose the specific Data Stream.
Click on "View Tag Instructions" and select "Install manually."
Copy the Google tag.
Install Tracking Code
Log in to Vacation Labs, go to Website > Advanced Settings, paste the code in the Header/Footer section, and save the changes.
Confirm that you can see the tracking code on your website
The best way to cross-check if you have successfully integrated the GA is via view page source. Simply open your website on google and press CTRL + U. Search for Analytics in the source code, if you find the GA code then you have successfully integrated the Google Analytics with your website!
Confirm that you can see visitor activity & reports on Google Analytics
You can view visitor activity and reports on the home page or by clicking on 'Reports'. Additionally, you can check the real-time data.
Cross-domain tracking
If you have only subscribed to the Booking Engine with Vacation Labs and still want to track booking operations on your website, you need to set up your GA script to track cross domains.
For example:
- Your website is running on www.yourdomain.com.
- You have purchased only the Booking Engine from Vacation Labs, which is configured on bookings.yourdomain.com.
If you have already configured Google Analytics on your website (www.yourdomain.com), you also need to configure it in the Vacation Labs backoffice. Navigate to the Google Analytics dashboard, go to Admin > Data Streams, select the data stream, and click on View Tag Instructions. You will see the script that needs to be updated with the script provided below.
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
// Add your GA4 Measurement ID
gtag('config', 'G-XXXXXXXXXX', {
linker: {
domains: ['example1.com', 'example2.com'] // Replace with your domains
}
});
</script>
Please copy the value from the GA dashboard and update it in the script. Also, update the domains in the script (for example, update both of your domains:
www.yourdomain.com and bookings.yourdomain.com.)
Finally, you need to install the updated script on both websites, and you can verify that the tracking is working by checking Google Analytics > Reports > Realtime.
(To install the tracking code in the Vacation Labs back office, please follow the steps outlined in the above section, "
Install Tracking Code")
As you can see, cross-domain tracking is working here.
Note: Please ensure both websites share the same GA4 property.