Connecting Google Analytics to your Vacation Labs Website

Connecting Google Analytics to your Vacation Labs Website

Quick Overview

  1. Optional: Create Google Analytics account and Property
  2. Get tracking code from Google Analytics
  3. Install Tracking Code
  4. Confirm that you can see the tracking code on your website
  5. Confirm that you can see visitor activity & reports on Google Analytics
  6. Cross-domain tracking


Optional: Create Google Analytics account and Property

InfoYou 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.

  1. 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".


Get tracking code from Google Analytics

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 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.

Info
Note: Please ensure both websites share the same GA4 property.

    • Related Articles

    • Connecting Google Search Console to your Vacation Labs Website

      Once your website is live we would recommend you to connect the Google search console. This article will help you connect Google Search Console to your website. Overview Why set up Google Search Console for your website? Before you start How to set ...
    • Disconnecting or changing the Google Analytics account

      If a new domain/property has been created using the same gmail address which is already connected under SETTINGS To connect the new Google Analytics property, Login into Vacation labs Click on Website Click on SEO & Advanced Settings Now click on ...
    • How to edit/modify Footer in Vacation Labs

      Along with your website header, the website footer is equally important for any website. It allows you to show a brief summary of all your website content in short. Most of the customer prefer website footer as the first place on your website to get ...
    • Deactivating the Website Sections in Vacation labs

      You can deactivate a particular section if you don't want to display or hide that section for some time. You may not always have to delete a section if you don't want to show it to your visitors. Please follow the below steps to deactivate/hide ...
    • Adding a blog to your Vacation Labs website

      Before you begin If hosting your blog on a subdomain, i.e. blog.yourdomain.com, is acceptable to you then nothing in this, and related, support articles applies to you. Please host your blog using any blogging platform (Wordpress, Ghost, Blogger, ...