Google Tag Manager · Schema

Variable

Represents a Google Tag Manager Variable. A variable provides dynamic values that can be used in tags and triggers, such as page URL, click text, or custom JavaScript values.

AnalyticsConversion TrackingMarketingTag ManagementTracking

Properties

Name Type Description
path string GTM Variable's API relative path.
accountId string GTM Account ID.
containerId string GTM Container ID.
workspaceId string GTM Workspace ID.
variableId string The Variable ID uniquely identifies the GTM Variable.
name string Variable display name.
type string GTM Variable Type. Common types include v (Data Layer Variable), j (1st Party Cookie), k (Custom JavaScript), jsm (Custom JavaScript Variable), u (URL), c (Constant), and e (DOM Element).
notes string User notes on how to apply this variable in the container.
scheduleStartMs string The start timestamp in milliseconds to schedule a variable.
scheduleEndMs string The end timestamp in milliseconds to schedule a variable.
parameter array The variable's parameters, which configure its behavior.
enablingTriggerId array For mobile containers only. A list of trigger IDs for enabling conditional variables. The variable is enabled if one of the enabling triggers is true while all of the disabling triggers are false.
disablingTriggerId array For mobile containers only. A list of trigger IDs for disabling conditional variables.
fingerprint string The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
parentFolderId string Parent folder ID.
tagManagerUrl string Auto-generated link to the tag manager UI.
View JSON Schema on GitHub