Connecting Google Analytics to your Vacation Labs Website

Connecting Google Analytics to your Vacation Labs Website

Connecting Google Analytics to your Vacation Labs Website  

Vacation Labs allows you to integrate Google Analytics with a few steps.

Quick Overview

  1. Optional: Create Google Analytics account and Property

  1. Get tracking code from Google Analytics:

    1. Click on the Admin button located at the bottom left.

    2. Select Property Settings > Data Collections and Modifications > Data Streams.

    3. Choose the specific Data Stream.

    4. Click on "View Tag Instructions" and select "Install manually."

    5. Copy the Google tag.

  1. Navigate to the Vacation Labs login and go to Website > Advanced Settings. Paste the copied code into the Header/Footer section.

  1. Confirm that you can see the tracking code on your website

  1. Confirm that you can see visitor activity & reports on Google Analytics

 

Before you start 

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.

Create Google Analytics account and Property

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

 

 

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

    • Getting started with your Vacation Labs account

      Welcome to Vacation Labs! Build your website or manage your bookings & operations with our best features. Let us start with the most basic tasks that you must complete before you begin working on your account. Update organization details, logo and ...
    • Adding Multiple Sections to your Website

      You add multiple sections on any static page to show more content with different styles and layouts. For example: you may want to display more than 2 carousels for the Tour cards, or collection cards, etc. Please follow the below steps to add ...
    • How to delete or disable a page on website

      You can always disable or delete a webpage if you wish to remove it from your website. If you wish to hide the page and don't want the visitor to visit the webpage for sometime then you can use the Disable option. Once the page is disabled it shows ...
    • Changing Page Breadcrumbs Settings

      Page Breadcrumbs will improve navigation for your visitors. Also, Google search displays the breadcrumbs in the search results, helping improve the website click-through rates. To modify the page breadcrumbs settings follow the below steps, Login ...
    • Configure your account settings

      The SETTINGS tab, also know as Global Settings is divided into multiple parts and which allow you to control many important aspects of your Vacation Labs account. Let's go through them all: Payment Processors Payment Processors allow you to collect ...