What Are Tag, Trigger and Variable in GTM?
When you step into the world of Google Tag Manager (GTM), there is one trio you will keep running into: GTM tag, trigger and variable — these three are the b…

When you step into the world of Google Tag Manager (GTM), there is one trio you will keep running into: GTM tag, trigger and variable. These three are the backbone of the whole system.
Think of GTM as a Lego set. Put the pieces together with the right logic and you end up with a data measurement mechanism that works flawlessly. In this guide we will look at these three key concepts, the foundation of every digital marketing setup you build, in their simplest form.
Understanding the logic behind GTM tag, trigger and variable
Whenever you want to set up an action in Google Tag Manager, there is a single question you need to form in your head. As you build that sentence, each word stands for one component:
The Tag: What will be done?
The Trigger: When will it be done?
The Variable: Which extra piece of information will be used?
Let's make this clear with a small example:
"When someone clicks the WhatsApp button (Trigger), send the conversion code to Google Ads (Tag), and include the link of the page that was clicked (Variable)." GTM's entire reason for existing rests on this three-part equation.
What is a GTM tag and what does it do?
What is a GTM tag? In the shortest possible terms, it is the snippet of code you want to send to third-party tools (Google Analytics, Meta, Google Ads, TikTok).
So what does it do? It lets the relevant platforms hear about what happens on your website. It tells GA4 when a page is viewed, and tells Google Ads "a conversion happened" when someone who arrived from an ad fills in a form. Until you create a tag and connect it to a trigger, GTM sends no data out in the background at all.
GTM trigger types and where they are used
The way a trigger works comes down entirely to a "condition-result" relationship. The trigger types that give a tag the order "wake up the moment this event happens and run the code" are these:
Page View: It kicks in the moment a visitor opens any page on your website. It is generally used for basic Analytics measurement codes or remarketing pixels. It fires as soon as the browser starts reading the code.
Click (All Elements & Just Links): It captures everything a visitor clicks on the site. You can listen only to outgoing links (Just Links), or to every click on an image, an empty area or a button (All Elements). It is ideal, for example, for counting who clicks the "Contact Us" button on your site.
Form Submission: It runs when a contact, sign-up or quote form on your site is filled in and "Submit" is clicked. It is the most critical answer to the question of how conversion tracking is done with Google Tag Manager, because it lets you count forms that were genuinely submitted successfully rather than fake clicks.
Scroll Depth: It measures how far down the page visitors scroll, as a percentage. Thresholds are usually set at 25%, 50%, 75% and 100%. It is used to analyze whether a long blog post or landing page is really being read.
GTM variable types and functions
What are the GTM variable types? Variables are small memory cards that inject dynamic data into tags and triggers. They come in two types:
Built-in Variables: These come ready inside GTM and you activate them simply by ticking the box next to them.
Page URL: the link of the page currently being viewed.
Click Text: the text written on the button that was clicked (e.g. "Buy Now").
Form ID: the system name of the form that was filled in.
User-Defined Variables: These are the variables you create from scratch to fit your own needs. This is where the question of how Google Tag Manager variables are created really comes into play.
Data Layer Variable: lets you pull dynamic information the developer has placed in the data layer, such as the order total or the product ID.
Constant: used to pin a long code you use over and over (e.g. the GA4 Measurement ID) to a single name.
What is the difference between a tag and a trigger in GTM?
What is the difference between a tag and a trigger in GTM? Let's engrave the answer into our minds with a clear metaphor:
The tag is the gun; the trigger is the trigger itself.
Unless you pull the trigger (Trigger), that gun (Tag) will never go off. And if you pull the trigger for nothing, there is no bullet (Tag) in the chamber, so nothing comes of it. For a piece of data to reach the platform on the other side, the two must be connected to each other.
Step-by-step GTM setup: an example scenario
Let's put the concepts into practice. To understand the logic of GTM configuration, we will send clicks on the "Download Price List" button on our site to Google Analytics 4 as an event.
Enable the Variable: Click Variables in the left-hand menu. In the Built-in Variables section, tick the "Click Text" box. (GTM will now keep a record of the text that gets clicked.)
Set Up the Trigger: Go to Triggers - New in the left-hand menu. For the type, choose "Click - All Elements". Set the firing rule to Some Clicks. In the rule field, enter: [Click Text] - [contains] - [Download Price List]. Save. (The trigger is now in place.)
Create the Tag: Go to Tags - New in the left-hand menu. For the tag type, choose "Google Analytics: GA4 Event". Enter pdf_indirildi as the event name. Click the Triggering field below and select the trigger you created in step 2 to attach it.
Test and Publish: Click the Preview button at the top right, go to your site and click the button. If you see "Tags Fired" on the GTM screen, hit the Submit button at the top right to take the setup live.
Optimize your data tracking with GTM
Grasping the basic logic of GTM is easy, but once it comes to dynamic remarketing codes for e-commerce sites, examples of custom variable use in GTM or server-side tracking, the margin for error has to be zero. A single variable connected incorrectly can throw off your entire ad optimization.
If you want to build your data warehouse leak-free, clean and with the highest possible accuracy, do not take chances. Let us set up the soundest tag hierarchy for you and put a stop to the data loss that wastes your ad budget.
Frequently asked questions
1. Can a single tag be run by more than one trigger?
Yes. For example, you can connect your Google Ads conversion tag to both the "visitors who see the Order Complete page" trigger and the "visitors who click the Quick Buy button" trigger at the same time. The tag fires as soon as either condition is met.
2. Do I have to use GTM variables?
For simple page view tags, no. But if you want to pass dynamic information specific to that moment and that user to your ad platforms — things like "the price of the product added to the cart", "the name of the button that was clicked" or "the name of the author on the page" — then you have to use variables.
3. How do I check whether a tag I set up in GTM is working, without knowing any code?
Click the "Preview" button in the top right corner of the GTM panel. In the test window that opens, go to your website and perform the action you set up (filling in the form, for example). If you see your tag listed under the "Tags Fired" heading on the GTM test screen, your setup is working perfectly.