Variable

tag management concept

01 Definition

Variable meaning: A named placeholder that supplies or captures a value for tags and triggers.

In tag management, a variable holds a value that tags and triggers can use, such as a page URL, a click text, or an order total from the data layer. Built-in and user-defined variables let you reuse values without hard-coding them, which keeps configurations flexible and easier to maintain.

Why it matters

How Variable fits the work

Variables make tracking dynamic, letting one tag or trigger adapt to many pages and events instead of needing a separate setup for each case.

In context

A data layer variable named order_total feeds the purchase value into the GA4 tag, so each transaction reports its correct amount.

!

Practical note

A variable that reads from the data layer returns nothing if the value is not present when it runs. Confirm timing and naming so variables resolve to the value you expect.