|
Labels depend on stimuli, and stimuli depend on variables. The variable contains the value that the trigger needs to estimate to know whether it should fire. The tag compares the value of the variable to the value specified in the trigger, and if the variable meets the trigger condition, the tag will fire. Going back to my scroll depth trigger example, the variable would be 75% of the vertical scroll depth.
Tags also use variables to collect information that can be passed to cayman islands whatsapp data the data layer when the user interacts with the website. A common example is a tag that fires when someone adds a certain number of products to their cart.
Variables can often be reused between tags. A common tip with GTM is to create variables with ID numbers or tracking codes that need to be used multiple times. Let's say you need to use your Google Analytics Measurement ID in multiple tags. You can create a variable whose value is your ID number. This way, instead of having to search and enter your ID number over and over again, you can just select the variable name.
When using GTM, there are two different types of variables: built-in variables and user-defined variables. Built-in variables are one of the most commonly used variable types, so Google can easily access them in GTM. Once you select a built-in variable, you will be able to configure its settings according to your needs.
|
|