1.What are the benefits if using GTM?
Simplified Tracking: With GTM, you can easily set up tracking tags without having to manually add code to your website. This simplifies the tracking process and allows you to set up and modify tags as needed quickly
Centralized Control: GTM offers a centralized platform for managing your tracking tags, which means you can easily keep track of all your tags and make updates from a single location. This helps streamline your tracking efforts and ensures consistency across your website.
2. How does the tracking process works?
As customers navigate the booking flow (the process of purchasing a ticket) on the Smeetz widget, an e-commerce object is generated. This object contains details about the booking and event type. Each time a user completes a step in the booking flow, the object is sent to your website. Once received, these objects are queued into a global data structure called dataLayer, which is provided by the Google Tag Manager script installed on your website.
Below are the types of events we are tracking:
**smtz_add_to_cart**: This event is triggered when a customer adds a ticket to their shopping cart. It allows you to track the number of items added to the cart the prices and the currency
**smtz_begin_checkout**: This event is triggered when a customer begins the checkout process. It allows you to track the number of customers who initiate the checkout process and how often this action is performed.
**smtz_checkout_progress**: This event is triggered during the checkout process as customers progress through the steps to complete their purchase such as adding their information (name, first name, email…)
**smtz_payment_info**: This event is triggered when a customer enters their payment information and submits it for processing.
**smtz_purchase**: This event is triggered when a customer completes the booking process and their payment is successfully processed.
Below is the structure of the e-commerce object that we send for each event:
{ event: event_name , //the event that is fired for each booking flow smeetzLabel, smeetzCategory: 'ecommerce', smeetzAction: type of acction, // the ecommerce action for each booking flow smeetzData: { id, name, currency, brand, category, price, quantity, }, };
3. How to enable Google Tag Manager tracking
Step 1: Connect google Tag Manager ID
Step 2: Receive the GTM Configuration File
Your Account Manager will provide you with a .json
file containing the GTM container setup.
Step 3: Import the GTM Container
Log in to your Google Tag Manager account.
Navigate to Admin > Import Container.
Select the
.json
file shared by Smeetz.Choose the appropriate Workspace and Import Option.
Confirm and publish the container.
Step 4: Update Your GTM Variables
After importing the container, go to the Variables section and update the following with your own GTM ID where applicable:
currency
Dynamic Pricing
GA4_ecommerce_object
price
quantity
value
📸 Refer to the screenshot below for visual guidance on updating variables.
Step 5: Add Your Google Analytics 4 (GA4) Measurement ID
If you are using GA4, you must add your GA4 Measurement ID in your GTM workspace:
In GTM, go to the Tags section.
Locate the tag named
GA4_TAG
.Open the tag and add your Measurement ID in the relevant field.
Save and publish the changes.