- Print
- DarkLight
- PDF
Set up Google Tag Manager on your website and apps
Introduction to GTM
Your GTM container serves as a central hub for managing various tracking tags without directly modifying the website and apps code. This article outlines an overview of GTM and its components and how to use Google Tag Manager (GTM) to trigger page view and conversion analytics.
GTM Components
GTM is a tag management tool and also a single central interface to configure many other tracking Tags like GA4, Facebook Pixel and CleverTap Tags.
Google Tag Manager uses these concepts to handle how tags are configured and fired: Trigger, Tag, Variable, Data Layer
Trigger GTM uses "triggers" to define when an event should be tracked. These triggers can be based on user actions (e.g., clicking a button) or page visits. Make sure triggers are properly configured and tested to track the events accurately.
Tag When a trigger fires (due to a user action), GTM sends information about the event through "tags" to analytics platforms like Google Analytics 4.
Variable is a named placeholder for a value that will change, such as a product name, a price value, or a date.
Data Layer in Tag manager implements a data layer to temporarily hold values in the client so that they can be used by tags, triggers, and variables.
Aside from the default tags in GTM's code library, you can create custom tags to serve specific use cases.
Add your GTM tracking ID in Tools CMS
Prerequisite:
- Your GTM container is created.
Steps
- Now, you simply have to add the Container ID in AppCMS.
- In Tools platform, go to AppCMS > Settings > Analytics.
- You will see the Google Tag Manager Tracking ID section on top. Paste your Container ID, and click Publish the page.
Add GTM into the pages you want, like, your Home Page, and we will publish them.
iOS and Android triggers
GTM Variables
Creating custom event tags
On Web and mWeb
With GTM, you must first create a trigger that will fire tags when something happens on your website or app like a user clicking a button or watching a video. This user interaction is called an event. And when that event happens, it sends info through the tag. GTM analytics engine is event-driven, meaning every time a user performs an action within a page on your website, an event is generated to capture it.
The following actions trigger an event in the ViewLift Platform code base.
Recommended: All these user events funnel can now be tracked directly from your GA4 properties.
Event name | Description | Setup status | Associated Tags |
soft_wall_shown | User clicks a video but must log in/sign up | Set up | - |
subscribe_cta_click | User clicks the Subscribe CTA | NA | - |
avod_finish_signin | User signs in to the site/app | Set up | User Sign In goal in analytics |
avod_finish_registration | User completes sign up | Set up | - |
view_plans | User clicks on the View Plans page. | NA | - |
select_plan | User selects any of the plans. | NA | - |
finish_registration | User completes registration | NA | - |
finish_subscription | User completes subscription | NA | - |
stream_start | User clicks a video and it starts playing | NA | - |
tvod_purchase_checkout_step_1 | User completes the first checkout step | NA | - |
tvod_purchase_checkout_step_2 | User completes the second checkout step | NA | - |
tvod_purchase_checkout_step_3 | User completes the third checkout step | NA | - |
tvod_purchase_completion | User completes payment and lands on the Thank You page | NA | - |
Ecommerce Purchase Event | User completes payment and lands on the Thank You page with transaction details | NA | Name, EmailId, userid, transactionId, subscriptionPlan, subscriptionStartDate, subscriptionEndDate, transactionAmount, paymentHandler, subscribed_via_platform, subscribed_from_country, localCurrency |
TrackAdwordsEvent | Fired on the Thank You page for successfully subscribed users | NA | Name, EmailId, userId, localCurrency, plan_price, transactionId |
AdsRemarketingEvent | Fired on each page view | NA | source, pageName, Login-Signup |
WebConfigurationEvent or GoogleAnalyticsAppWeb | Fired on each page view | NA | source, pageName |
Creating a new GTM Trigger
You can set up your trigger configuration and events in GTM. If you need assistance, please contact your Customer Success Manager to explore or simply reach out to our Support team.