Where do I find it?
SIDE PANEL > TourCMS Shop > Analytics > GA4
What does it mean?
In this article, we explain how to use Google Tag Manager (GTM) and a GA4 data layer.
Our WordPress plugin is fully integrated with Google Analytics and can:
Track website traffic and user engagement
Measure key e-commerce events (add to cart, begin checkout, purchase, etc.)
Help you understand booking behaviour and optimise marketing and sales
This guide will help you set up Google Tag Manager (GTM) and Google Analytics 4 (GA4) to track key e-commerce events:
Action |
GA4 Event Name |
|---|---|
When customers view tours |
|
When they add items to cart |
|
When they remove items from cart |
|
When they select payment method |
|
When they start checkout |
|
When they complete a booking |
purchase |
When they view tour lists |
|
What should I do?
Part 1: What you’ll need
Before starting, ensure you have the following access and resources:
A Google Account (Gmail or business account)
Access to your website (or share login with developer)
Someone who can add code to your website's header/footer
Part 2: Set up Google Analytics 4
Step 1: Create Analytics Account
Click Create
Click Create account
Enter your business name
Accept the terms and click Next
Step 2: Create Property
Enter your property name (e.g., "Gray Line - [Your Site Name]")
Select your timezone and currency
Click Next
Select your business category (Travel or Retail)
Click Create
Step 3: Get Your Measurement ID
Go to Admin (gear icon, bottom left)
Click Data Streams (under Property section)
Click your website
Look for Measurement ID (looks like:
G-XXXXXXXXXX)COPY THIS - You'll need it later
Part 3: Set up Google Tag Manager
Step 1: Create GTM Account
Click Create Account
Enter your business name
Enter your website domain name
Select Web as the platform
Click Create
Accept the terms
Step 2: Get Your Container ID
After the account is created, you'll see your Container ID (looks like:
GTM-XXXXXX)COPY THIS - You'll need it next
Step 3: Add Code to Your Website
Give this information to your website developer:
Two code snippets need to be added to your website:
-
Code 1 - Add to the
<head>section of your website (before closing</head>tag):Note: Replace
GTM-XXXXXXwith your Container ID from Step 2.
-
Code 2 - Add to the
<body>section (immediately after opening<body>tag):Note: Replace
GTM-XXXXXXwith your Container ID.
If you have access to your TourCMS website, implement this by:
Login to your Wordpress backend. In case you do not have these credentials, please email support@palisis.com so we can create a user for your organisation.
In the left sidebar, click on TourCMS Shop > Customisations.
Click on the tab for Custom Scripts.
Paste the code snippets in the Header Script and Body Script respectively, as per the instructions above.
Part 4: Create variables in GTM
In Google Tag Manager, variables store information from your website so it can be sent to Google Analytics.
Go to GTM → Variables → Click "New" and create these 8 Data Layer Variables:
Variable Name |
Type |
Data Layer Variable Name |
Default Value (for List Name only) |
|---|---|---|---|
DL - Currency |
Data Layer Variable |
|
|
DL - Value |
Data Layer Variable |
|
|
DL - Transaction ID |
Data Layer Variable |
|
|
DL - Payment Type |
Data Layer Variable |
|
|
DL - Booking ID |
Data Layer Variable |
|
|
DL - Items Array |
Data Layer Variable |
|
|
DL - List Name |
Data Layer Variable |
|
Search Results |
GA4 Measurement ID |
Constant |
Not Applicable |
(Paste your Measurement ID from Part 2: |
Part 5: Create triggers in GTM
Triggers tell GTM when to send information to Google Analytics. Each event needs a trigger.
Go to GTM → Triggers → Click "New" and create these 7 Custom Event triggers:
Trigger Name |
Trigger Type |
Event Name (Required) |
|---|---|---|
|
Custom Event |
|
|
Custom Event |
|
|
Custom Event |
|
|
Custom Event |
|
|
Custom Event |
|
|
Custom Event |
|
|
Custom Event |
|
Part 6: Create tags in GTM
Tags send your booking data to Google Analytics.
Go to GTM → Tags → Click "New" and create the following:
1. GA4 Configuration Tag (Essential)
Setting |
Value |
|---|---|
Tag Name |
|
Tag Type |
Google Analytics: GA4 Configuration |
Measurement ID |
|
Trigger |
|
2. GA4 Event Tags (7 Total)
For each event below, the Tag Configuration Type is Google Analytics: GA4 Event. The Measurement ID is always {{GA4 Measurement ID}}.
Event: view_item
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
Event: add_to_cart
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
Event: remove_from_cart
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
Event: add_payment_info
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Event: begin_checkout
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
Event: purchase (MOST IMPORTANT - Tracks Revenue)
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Event: view_item_list
Parameter |
Value |
Trigger |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Part 7: Set up conversions in GA4
Conversions are actions that matter to your business (like a completed booking).
Go to Google Analytics 4 → Admin → Conversions → Click "Create conversion"
Conversion Name |
Event Name |
Notes |
|---|---|---|
Purchase |
|
Your main revenue conversion |
Begin Checkout |
|
(Optional) Tracks drop-off rate |
Add Payment Info |
|
(Optional) Tracks final step before purchase |
Part 8: Testing
Before publishing, always test thoroughly to ensure accuracy.
Step 1: Preview Mode (GTM)
In GTM, click Preview button (top right).
Visit your website.
Perform the following actions and check the Preview panel:
Action on Website |
Expected Event in GTM Preview |
|---|---|
View a tour |
|
Add item to cart |
|
Remove item |
|
Go to checkout |
|
Select payment |
|
Complete booking |
purchase |
Step 2: Google Analytics Real-time Report
Go to Google Analytics 4 → Reports → Real-time.
On your website, perform a couple of actions (e.g., view a tour and add to cart).
You should see events appearing in the real-time report within 5-10 seconds.
Step 3: Check Everything
Are all events firing correctly?
Is booking revenue showing in the
purchaseevent parameters?Are there no errors in the GTM Preview console?
Part 9: Publish to Live Website
Once testing is complete and verified:
In GTM, close Preview mode.
Click Submit button (top right).
Add a version name (e.g., "v1 - Initial Setup").
Add a description of what changed.
Click Publish and confirm publication.
Your website is now tracking bookings!
Part 10: Monitor & Troubleshoot
Data Availability
Real-time data appears within 5-10 minutes.
Wait 24-48 hours for full data to appear in standard GA4 reports.
Check These Reports in GA4:
Reports → Real-time
Reports → User Acquisition
Reports → Monetization → Conversions
Reports → Monetization → Revenue (confirms booking revenue)
Troubleshooting
Issue |
Verification Check |
|---|---|
No data showing |
GTM code is correctly installed on the website ( |
Incorrect data |
Verify data layer variables are populated during the event in GTM Preview. |
Missing Conversions |
Check GA4 Conversions list— |
Inconsistent data |
Wait 48 hours for full report processing. |
IMPORTANT REMINDERS
✓ The purchase event is the most critical - this tracks your revenue.
✓ Each booking must have a unique booking ID to prevent duplicate counting.
✓ Test thoroughly before publishing to the live website.
✓ Your currency must be consistent (USD, EUR, GBP, etc.).
✓ Make sure cookie consent is enabled on your website (affects tracking).
Quick reference: What gets tracked
Action |
GA4 Event |
Key Data Tracked |
|---|---|---|
Customer views a tour |
|
Which tour, price, category |
Customer adds to cart |
|
Tour added, quantity, price |
Customer removes item |
|
What was removed |
Customer selects payment |
|
Payment method chosen |
Customer starts checkout |
|
Items in cart, total value |
Customer completes booking |
purchase |
Revenue, Booking ID, Transaction ID |
Customer views tour list |
|
Which tours displayed, list name |
Need help?
GTM Help: support.google.com/tagmanager
GA4 Help: support.google.com/analytics
Contact: Your website developer for implementation questions