Setting Up Google Analytics and Google Tag Manager
Configure Google Analytics, Google Tag Manager, and Google Ads conversion tracking for a Vally booking website.
Playback speed: 1×
The recording could not be played. Please try again.
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
- Go to analytics.google.com and sign in.
- Click +Create and select Account.
- Enter an Account Name (We recommend using your business name, example: Peacock Adventures).
- Configure data-sharing settings (we recommend unchecking all). Click Next.
- In Property details:
- Enter a Property Name.
- Set Time Zone.
- Select Currency.
- Click Next.
- Set up Business details and objectives:
- For Industry category, select Travel.
- Select Business size.
- Click Next.
- Set up a Data Stream:
- Select Web.
- Enter the site URL and site Name.

- Click Create & Continue.
- Property creation will be finished. Click the property to display the Measurement ID (GA4 tag).
- Write down the Measurement ID to use later.
- Write down the Measurement ID to use later.
Existing Accounts:
- Go to analytics.google.com and sign in.
- In the left menu, click Admin.
- Under Data Collection and Modification, click Data Streams.
- Click the property to display the Measurement ID.
- Write down the Measurement ID to use later.

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.
- Go to Admin.
- Under Property, click Data Streams and select your web data stream.
- In the stream settings, click Configure tag settings.
- Click Configure your domains.
- 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.

- 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:
- Go to tagmanager.google.com and sign in.
- Click Create Account, then fill in the Account Name and select the Country.
- On Container Setup:
- In Container Name, type the website domain.
- In Target Platform, select Web.
- Click Create.
- 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.
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 Google tag and a Cross-Domain Linker tag.
How to do it:
- Go to tagmanager.google.com and sign in.
- In the top left menu, click Admin.
- Under the Container menu, click Import Container. A new window will show up:

- Open the Vally Tag Manager import file and click Download in Google Drive.
- Click Choose container file and select the import file.
- On import options:
- If you previously imported a Vally container, follow Update a container you already imported instead.
- If this is your first Vally import and this GTM container has no existing setup to keep, select Overwrite.
- If this GTM container has other setup to keep, select Merge. Review the detailed changes before confirming, especially any tags or variables GTM would replace or rename.
- Wait for the import to complete, then close the window.
- In Tags, open the GA4 Google tag. Under Configuration settings, confirm that
cookie_flagsis set toSameSite=None;Secure.
- In the left menu, click Variables.
- Scroll down to User-Defined Variables and click GA4.
- Click on G-YOURIDHERE and replace it with your Measurement ID (G-XXXXXX).
- Click Save.
- Scroll down to User-Defined Variables and click GA4.
- Click Submit.
- Click Publish.
- Click Continue to finish.
Saving or importing a container does not update your live site until you publish it.
Update a container you already imported
If you already imported an earlier Vally container, update its GA4 Google tag using the small update file below. This file does not include the GA4 variable that holds your Measurement ID. If you have customized the GA4 tag, use the manual instructions below to keep those settings.
Update with the import file
- In Google Tag Manager, open your existing container and click Admin.
- Under Container, click Import Container.
- Open the Vally GA4 cookie flags update file, click Download in Google Drive, then select the downloaded file in Choose container file.
- Choose your workspace. Select Merge, then Overwrite conflicting tags, triggers, and variables. In the import preview, confirm that GA4 is the only item listed and is marked Modified, with 0 Added and 0 Deleted. If anything else appears, cancel the import.
- Click Add to workspace.
- In Tags, open the GA4 Google tag. Under Configuration settings, confirm that
cookie_flagsis set toSameSite=None;Secure. - In Variables, open the user-defined GA4 variable and confirm that its value is your Measurement ID (
G-...). If it is different, replace it with your Measurement ID and click Save. - Click Submit, then Publish to make the update live.
Update manually
- In Google Tag Manager, open Tags and select the GA4 Google tag.
- Under Configuration settings, add
cookie_flagswith the valueSameSite=None;Secure. If the setting is already there, keep one row with that value. Leave your other settings in place. - Click Save.
- Click Submit and Publish to make the change live.
Step 3) Add your GTM tag to your Vally’s business
- Go to Google Tag Manager and copy your GTM container ID.
- Log in to your account in Vally Portal and go to the Business Settings page.
- Scroll down to Advanced Settings and expand it.
- In Google Tag Manager ID, paste your GTM container ID and click Update.
Step 4) Link your account to Google Ads
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.
- Go to: Admin > Product Links > Google Ads Links.
- Click Link.
- Click Choose Google Ads Accounts.
- Select the desired account.
- Click Confirm.
- Click Link.
- Configure your settings:

- Enable Personalized Advertising.
- Enable Auto-Tagging.
- Allow access to Analytics.
- Click Next.
- Review the settings and click Submit.
Your account will now be linked to your Google Ads.
Step 5) Check booking popup tracking
After configuring the GTM container in Step 2 and saving its ID in Vally Portal in Step 3, check tracking on both your website and your direct Vally booking page.
- In your GTM Workspace, click Preview. In Tag Assistant, enter the URL of the page with your booking popup and click Connect. When your site opens, return to the Tag Assistant tab and click Continue.
- On your site, accept analytics cookies if prompted. Open the desktop booking popup, view an activity, add it to the cart, and open the cart.
- In Tag Assistant, open Summary → Tags and check Tags Fired. Confirm that View Item, Add To Cart, and View Cart appear.
- Under Summary → Output → Hits Sent, confirm that the GA4 hits go to your Measurement ID.
















