Working with Google Tag Manager (GTM) opens up a variety of possibilities to analyze and understand user behavior on your website. The concepts of Tags, Triggers, and Variables play a crucial role in this. Here you will learn the fundamental theoretical aspects of these three elements and how they work together to enable effective tracking and data management.
Key Insights
- A Tag is a code snippet that runs on a website or in an app.
- Triggers activate Tags and determine when the Tags are fired.
- Variables provide the necessary data points for Tags and Triggers.
What are Tags?
Tags are essential components within the Google Tag Manager. They essentially consist of code snippets that are embedded in your website or app. These snippets allow the execution of code, for example, to track specific actions. Proper implementation of Tags is necessary to forward data to external tools like Google Analytics.
An example of using a Tag is when you want to track a specific click on your website. In this case, the Tag sends the relevant data to Google Analytics once the designated action occurs.

The Trigger: Activator for Tags
Triggers are the next important concept. They determine when a Tag is activated. You can think of Triggers as the trigger of a gun – they are triggered by certain events, such as a click or a page view.
For example, if you specify that a Tag should be triggered when a specific button is clicked, that exact event will cause the Tag to execute the necessary code and transmit the information.

The Role of Variables
Variables are the final but equally important component in the Google Tag Manager. They serve as data points used in Tags and Triggers. For example, you can specify which data should be captured when a button is clicked or which information is relevant during a page view.
Without proper configuration of the Variables, your Tags and Triggers may not capture the desired data. Therefore, it is essential to understand this aspect in order to work effectively in GTM.
Goal Setting for Google Tag Manager
Before starting to work with the Google Tag Manager, you should be clear about what you want to achieve with it. Asking three crucial questions can help clarify your objectives:
- What do you want to do with the Google Tag Manager?
- When should the tracking take place?
- What details should be captured?
These questions help you define a clear framework for action and plan the next steps strategically.
A Practical Example: Conversion Tracking
A typical example is conversion tracking. Here, for instance, you may want to track the sale of a product. The Trigger in this case would be a page view that indicates someone has reached the thank you page – a clear sign that a purchase has taken place.
A specific example could be: When a user visits the URL "tobitalk.at/danke," the Tag is activated, and Google Analytics receives information about this conversion.

The Interaction of Elements
The interaction between Tags, Triggers, and Variables illustrates how the individual components interplay. While the Tag enables necessary tracking, the Trigger controls when and at what event the Tag is activated. Variables provide the contextual information required for tracking – for example, the price of a product.
If a product is automatically labeled as valuable in the Variable, the system shows that a conversion of this amount has occurred. This way, you gain deeper insights into the financial aspects of your user interactions.
Summary
Throughout this tutorial, you have learned the basic theoretical aspects of tags, triggers, and variables in Google Tag Manager. Your understanding of these concepts will help you create effective tracking solutions and evaluate your online activities purposefully.
Frequently Asked Questions
What is a tag in Google Tag Manager?A Tag is a code snippet that is executed on a website or in an app to track data.
What does a trigger do?A trigger determines at which event a tag is fired, for example, on a click or page visit.
What are variables in GTM?Variables are data points used in tags and triggers to capture relevant information.
How do tags, triggers, and variables work together?Tags execute the code, triggers activate the tags on events, and variables provide the necessary data points.
Why are goals important when working with Google Tag Manager?Clear goals help you stay focused and utilize GTM more effectively.