What This Guide Covers
This guide will help you track bookings made through our event booking widget using Google Analytics 4 (GA4). You'll be able to see:
π How many people view your booking pages
π° Purchase conversions with transaction values
π― Which marketing campaigns drive bookings
π Detailed ecommerce data in GA4
Time to complete: 15-20 minutes
β
Before you start: Make sure you've completed one of these prerequisite guides:
Using our widget on your website? Complete: Adding Google Tag Manager to Your Website
Using Eventrac landing pages? Complete: Adding Google Tag Manager to Your EventTrac Landing Pages
Note: This is an advanced-level technical guide. For assistance setting this up, please contact our support team
Before You Start
You'll need:
Access to your Google Tag Manager account
Access to your Google Analytics 4 property
Your GA4 Measurement ID (format:
G-XXXXXXXXXX)
To find your GA4 Measurement ID:
Log into Google Analytics 4
Click Admin (gear icon, bottom left)
Under Property, click Data Streams
Click on your web data stream
Copy the Measurement ID (starts with
G-)
Watch the summary video
Step 1: Create Data Layer Variables
These variables capture booking data from the widget and make it available to Google Analytics.
How to Create Variables:
In Google Tag Manager, click Variables (left sidebar)
Scroll to User-Defined Variables section
Click New
Create These 5 Variables:
Variable 1: currency
Click Variable Configuration
Select Data Layer Variable
Data Layer Variable Name:
currencyClick Save
Name it:
currency
Variable 2: items
Click New again
Select Data Layer Variable
Data Layer Variable Name:
itemsClick Save
Name it:
items
Variable 3: pageTitle
Click New
Select Data Layer Variable
Data Layer Variable Name:
pageTitleClick Save
Name it:
pageTitle
Variable 4: transaction_id
Click New
Select Data Layer Variable
Data Layer Variable Name:
transaction_idClick Save
Name it:
transaction_id
Variable 5: value
Click New
Select Data Layer Variable
Data Layer Variable Name:
valueClick Save
Name it:
value
Variable 6: GA4 Measurement ID
Click New
Select Constant
Data Layer Variable Name:
GA4 Measurement IDValue: <Your measurement ID>
Click Save
You should now have 6 new variables in your User-Defined Variables list.
Step 2: Create Event Triggers
Triggers tell Google Tag Manager when to fire your tracking tags.
Trigger 1: Widget Page View
Click Triggers (left sidebar)
Click New
Click Trigger Configuration
Select Custom Event
Event name:
page_viewThis trigger fires on: All Custom Events
Click Save
Name it:
Widget Page View
Trigger 2: Widget Purchase
Click New again
Click Trigger Configuration
Select Custom Event
Event name:
purchaseThis trigger fires on: All Custom Events
Click Save
Name it:
Widget Purchase
Step 3: Set Up GA4 Configuration Tag
Important: Check if you already have a GA4 tag installed.
Check for Existing GA4 Tag:
Click Tags (left sidebar)
Look for a tag with type "Google Tag" or "Google Analytics: GA4 Configuration"
If you found one:
β Note the tag name (you'll need it later)
β Skip to Step 4
If you didn't find one:
Continue below to create a new GA4 Configuration Tag
Create New GA4 Configuration Tag:
Click Tags β New
Click Tag Configuration
Select Google Tag
Tag ID: Enter your GA4 Measurement ID (e.g.,
G-XXXXXXXXXX)Click Triggering
Select All Pages
Click Save (top right)
Name it:
GA4 Configuration
Step 4: Create GA4 Page View Event Tag
This tracks when people view pages within the booking widget.
Click Tags β New
Click Tag Configuration
Select Google Analytics: GA4 Event
Configuration Tag:
Click the dropdown
Select your GA4 Configuration tag (from Step 3)
Note: If you don't see this dropdown, make sure you selected "Google Analytics: GA4 Event" not "Google Tag"
Event Name:
page_viewClick Event Parameters accordion to expand it
Click Add Row
Parameter Name:
page_titleValue: Click the + icon β Select
{{pageTitle}}
Click Triggering
Select Widget Page View (the trigger you created in Step 2)
Click Save (top right)
Name it:
GA4 - Page View
Step 5: Create GA4 Purchase Event Tag
This tracks completed bookings with full transaction details.
Click Tags β New
Click Tag Configuration
Select Google Analytics: GA4 Event
Configuration Tag:
Click the dropdown
Select your GA4 Configuration tag
Event Name:
purchaseClick Event Parameters accordion to expand it
Click Add Row four times and add these parameters:
Parameter Name | Value |
|
|
|
|
|
|
|
|
To add the values, click the + icon next to the Value field and select the variable from the list
IMPORTANT: Scroll down to the Ecommerce section
Click to expand it
Check the box: "Send ecommerce data"
Data source: Select "Data Layer"
Click Triggering
Select Widget Purchase (the trigger you created in Step 2)
Click Save (top right)
Name it:
GA4 - Purchase
Step 6: Publish Your Changes
Click Submit (top right, blue button)
Add a description: "Added GA4 tracking for event booking widget"
Click Publish
Your tracking is now live! π
How to Test Your Setup
Test 1: Preview Mode
In GTM, click Preview (top right)
Enter your website URL (the page with the booking widget)
Click Connect
Your website opens in a new tab with a GTM debug panel at the bottom
Complete a test booking and watch for:
β
Widget Page Viewtrigger fires when you navigate in the widgetβ
Widget Purchasetrigger fires when you complete a bookingβ
GA4 - Page Viewtag fires with the page view triggerβ
GA4 - Purchasetag fires with the purchase trigger
If the tags fire successfully, you're good to go!
Test 2: GA4 Realtime Report
Log into Google Analytics 4
Click Reports β Realtime
In another tab, complete a test booking on your website
Back in GA4, you should see:
Event count increases for
page_viewEvent count increases for
purchaseEvent name list shows both
page_viewandpurchase
If you see these events, tracking is working correctly! β
Test 3: GA4 DebugView (Advanced)
For more detailed testing:
In GA4, go to Admin β DebugView
Open your website in a new tab
Add
?_ga_debug=1to the end of your URLExample:
https://yourwebsite.com?_ga_debug=1
Complete a test booking
In DebugView, you should see:
page_viewevent withpage_titleparameterpurchaseevent withtransaction_id,value,currency, anditemsparameters
Troubleshooting
I don't see any events firing in Preview Mode
I don't see any events firing in Preview Mode
Check these:
Is the widget on the page you're testing?
The events only fire when someone interacts with the booking widget
Is the tag published?
Click Submit β Publish in GTM
Are the triggers spelled correctly?
Event names are case-sensitive
page_viewis correctPage_Vieworpageviewwill NOT work
Try refreshing the preview connection
Click Disconnect then Preview again
Tags fire in Preview Mode but I don't see events in GA4
Tags fire in Preview Mode but I don't see events in GA4
Check these:
Is the GA4 Measurement ID correct?
In GTM, open your GA4 Configuration tag
Verify the Measurement ID matches your GA4 property
Wait a few minutes
Realtime reports can have a 30-second to 2-minute delay
DebugView is usually instant
Check you're looking at the right GA4 property
Make sure you're logged into the correct GA4 account
I see page_view but not purchase events
I see page_view but not purchase events
Did you complete a test booking?
The purchase event only fires after a successful booking
Is the Purchase tag configured correctly?
Open the
GA4 - PurchasetagVerify "Send ecommerce data" is checked
Verify the trigger is
Widget Purchase
Check the browser console for errors
Right-click β Inspect β Console tab
Look for any red error messages
Purchase events show in GA4 but without revenue/items
Purchase events show in GA4 but without revenue/items
Check these:
Is "Send ecommerce data" checked?
In the
GA4 - PurchasetagExpand the Ecommerce section
Make sure the checkbox is ticked
Is the data source set to "Data Layer"?
Right below the checkbox
Are the variables created correctly?
Go to Variables in GTM
Make sure
value,currency, anditemsvariables existVariable names must match exactly (case-sensitive)
What Happens Next
In Google Analytics 4:
Within 24-48 hours, you'll see:
Purchase events in Reports β Monetization β Ecommerce purchases
Transaction revenue in your reports
Individual transaction details
Items purchased (ticket types, quantities, etc.)
To view purchase data:
GA4 β Reports β Monetization β Ecommerce purchases
You'll see metrics like:
Total revenue
Number of transactions
Average purchase value
Items purchased
In Google Ads (If Applicable):
To track bookings as Google Ads conversions:
Link GA4 to Google Ads (if not already linked)
GA4 β Admin β Product Links β Google Ads Links
Import the purchase conversion
Google Ads β Goals β Conversions
Click "New conversion action" β Import β Google Analytics 4
Select the
purchaseeventClick Import and Continue
Wait 24-48 hours for conversions to start appearing
For detailed instructions, see our guide: "Setting Up Google Ads Conversions"
Data Privacy & Compliance
What data is tracked:
Anonymous transaction IDs
Purchase amounts and currency
Item details (ticket types, quantities)
Page titles within the widget
What is NOT tracked:
Customer names
Email addresses
Credit card information
Personal identifiable information (PII)
GDPR/Privacy Compliance:
This setup is compliant with GDPR and privacy regulations
Only anonymous transaction data is collected
Ensure your privacy policy mentions the use of Google Analytics
If you use cookie consent tools, GA4 tags should respect consent settings
Summary Checklist
Before finishing, make sure you've completed:
β Created 5 Data Layer Variables
β Created 2 Custom Event Triggers
β Set up GA4 Configuration Tag (or verified existing one)
β Created GA4 Page View Event Tag
β Created GA4 Purchase Event Tag with ecommerce data enabled
β Published your GTM container
β Tested in Preview Mode
β Verified events appear in GA4 Realtime
β Completed at least one test booking
Support
Need help? We're here for you:
π¬ Live Chat: Contact Us
π₯ Video Tutorial: [coming soon]





