Skip to main content

variables

Overview

Namevariables
TypeResource
Idgoogleanalytics.tagmanager.variables

Fields

NameDatatypeDescription
namestringVariable display name. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
parentFolderIdstringParent folder id.
pathstringGTM Variable's API relative path.
parameterarrayThe variable's parameters. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
variableIdstringThe Variable ID uniquely identifies the GTM Variable.
containerIdstringGTM Container ID.
formatValueobject
disablingTriggerIdarrayFor mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger are false. Treated as an unordered set. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
fingerprintstringThe fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.
scheduleStartMsstringThe start timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
notesstringUser notes on how to apply this variable in the container. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
tagManagerUrlstringAuto generated link to the tag manager UI
scheduleEndMsstringThe end timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
enablingTriggerIdarrayFor 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 the disabling triggers are false. Treated as an unordered set. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
accountIdstringGTM Account ID.
workspaceIdstringGTM Workspace ID.
typestringGTM Variable Type. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update

Methods

NameAccessible byRequired ParamsDescription
accounts_containers_workspaces_variables_getSELECTaccountsId, containersId, variablesId, workspacesIdGets a GTM Variable.
accounts_containers_workspaces_variables_listSELECTaccountsId, containersId, workspacesIdLists all GTM Variables of a Container.
accounts_containers_workspaces_variables_createINSERTaccountsId, containersId, workspacesIdCreates a GTM Variable.
accounts_containers_workspaces_variables_deleteDELETEaccountsId, containersId, variablesId, workspacesIdDeletes a GTM Variable.
accounts_containers_workspaces_variables_revertEXECaccountsId, containersId, variablesId, workspacesIdReverts changes to a GTM Variable in a GTM Workspace.
accounts_containers_workspaces_variables_updateEXECaccountsId, containersId, variablesId, workspacesIdUpdates a GTM Variable.