are pieces of data that can be categorized into types and have a name, and that (which is super-important!) you can allocate some value to. The value of variables may change, but the name will not.
The can be: - Variables as part of triggers:
to determine the events which need to help triggers call tags to fire. For instance:
- Variables as part of tags:
- Event: Page view
- Trigger type: Page view
- Fire on: Some Pages
- Fire the tag when url variable
- Contains this value: my-site.com/pricing
to determine dynamic values.For instance:
to record the transaction value and the list of purchased products, and/or send data (product ID, product price, etc.) to a tag.
GTM includes a set of in-built variables
, as well as allows users to create custom ones.