Browse docs
On this page

Setting Up Google Analytics and Google Tag Manager

Configure Google Analytics, Google Tag Manager, and Google Ads conversion tracking for a Vally booking website.

This guide will help you set up Google Analytics and Google Tag Manager to ensure accurate tracking of your users activity, and then link Google Ads so results and conversions are shared across both platforms.

Step 1) Google Analytics 4 (GA4):

Google Analytics helps us understand how people use your website and if they complete actions like bookings. We will create an account, get the Measurement ID, and later connect it with Google Ads so data can flow between the two platforms.

New Accounts

  1. Go to analytics.google.com and sign in.
  2. Click +Create and select Account.
    • Google Analytics setup, step 1
  3. Enter an Account Name (We recommend using your business name, example: Peacock Adventures).
    • Google Analytics setup, step 2
  4. Configure data-sharing settings (we recommend unchecking all). Click Next.
  5. In Property details:
    Google Analytics setup, step 3
    • Enter a Property Name.
    • Set Time Zone.
    • Select Currency.
    • Click Next.
  6. Set up Business details and objectives:
    • For Industry category, select Travel.
    • Select Business size.
    • Click Next.
  7. Set up a Data Stream:
    Google Analytics setup, step 6
    • Select Web.
    • Enter the site URL and site Name. Google Analytics setup, step 7
    • Click Create & Continue.
  8. Property creation will be finished. Click the property to display the Measurement ID (GA4 tag).
    • Write down the Measurement ID to use later.
      • Google Analytics setup, step 9

Existing Accounts:

  1. Go to analytics.google.com and sign in.
  2. In the left menu, click Admin.
    • Google Analytics setup, step 10
  3. Under Data Collection and Modification, click Data Streams.
    • Google Analytics setup, step 11
  4. Click the property to display the Measurement ID.
    • Write down the Measurement ID to use later.
    • Google Analytics setup, step 9

Add Vally and Your Business Domains

Cross-linking domains allows us to avoid counting the same visitor twice and to keep their session active when they move between your site and your Vally booking page, so conversions are tracked correctly.

  1. Go to Admin.
    • Google Analytics setup, step 10
  2. Under Property, click Data Streams and select your web data stream.
  3. In the stream settings, click Configure tag settings.
    • Google Analytics cross-domain settings, step 2
  4. Click Configure your domains.
  5. Under Include domains that match the following conditions:
    • For the first condition, set Match type to Contains and enter vallypro.com.
    • Click Add condition.
    • For the second condition, set Match type to Contains and enter your business website domain.
    • Cross-domain configuration with Vally and business website domains
  6. Click Save.

Step 2) Google Tag Manager (GTM):

Google Tag Manager is where we manage tracking codes so your website can send information to Google Analytics. Vally provides a ready-to-use file (called “container”) with the important tags already configured.

New accounts:

  1. Go to tagmanager.google.com and sign in.
  2. Click Create Account, then fill in the Account Name and select the Country.
  3. On Container Setup:
    • In Container Name, type the website domain.
    • In Target Platform, select Web.
    • Click Create.
      • Google Tag Manager code snippet, step 1
  4. Two code snippets will be created. These two codes need to be added to your website:
    • First snippet: Must be pasted on the <Head> of your page.
    • Second snippet: Must be pasted on the <body> of your page.
      • Google Tag Manager code snippet, step 2

If you’re an existing account and already have the Snippets installed, jump to the next step.

Import Vally’s Container

To track bookings, we need to add events such as “add to cart”, “begin checkout” and “purchase” so that Google Analytics registers the key conversion actions. The Vally container file already includes these events, along with a GA4 Configuration Tag and a Cross-Domain Linker Tag.

How to do it:

  1. Go to tagmanager.google.com and sign in.
  2. In the top left menu, click Admin.
    • Vally Google Tag Manager container setup, step 1
  3. Under the Container menu, click Import Container. A new window will show up:
    • Vally Google Tag Manager container setup, step 2
    • Download the file import file by clicking here: Vally Tag Manager Import File
    • Click Choose container file and select the import file.
    • On import options:
      • If you’re a new acccount, select “Overwrite”.
      • If you already have an existing acccount with tags created, select “Merge” instead.
    • Wait for the import to complete, then close the window.
  4. In the left menu, click Variables.
    Vally Google Tag Manager container setup, step 3
    • Scroll down to User-Defined Variables and click GA4.
      • Vally Google Tag Manager container setup, step 4
    • Click on G-YOURIDHERE and replace it with your Measurement ID (G-XXXXXX).
      • Vally Google Tag Manager container setup, step 5
    • Click Save.
  5. Click Submit.
    • Vally Google Tag Manager container setup, step 6
  6. Click Publish.
    • Vally Google Tag Manager container setup, step 7
  7. Click Continue to finish.

Step 3) Add your GTM tag to your Vally’s business

  1. Go to Google Tag Manager and copy your GTM tag.
  2. Log in to your account in Vally portal, and go to the Business Settings page.
  3. Scroll down to Advanced Settings and expand it.
  4. In Google Tag Manager ID, paste your GTM tag and click Update.
    • Vally Google Tag Manager container setup, step 8

By linking Google Analytics 4 with Google Ads, you enable data sharing between the two platforms, allowing Analytics data to be used in Google Ads, and vice versa.
Note: Make sure you are signed in both your Google Analytics and Google Ads account.

  1. Go to: Admin > Product Links > Google Ads Links.
    Google Ads connection, step 2
    • Click Link.
      • Google Ads connection, step 1
    • Click Choose Google Ads Accounts.
      • Google Ads connection, step 3
    • Select the desired account.
    • Click Confirm.
  2. Configure your settings:
    • Google Ads connection, step 4
    • Enable Personalized Advertising.
    • Enable Auto-Tagging.
    • Allow access to Analytics.
    • Click Next.
  3. Review the settings and click Submit.

Your account will now be linked to your Google Ads.