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. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Variable",
"type": "object",
"description": "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.",
"properties": {
"path": {
"type": "string",
"description": "GTM Variable's API relative path."
},
"accountId": {
"type": "string",
"description": "GTM Account ID."
},
"containerId": {
"type": "string",
"description": "GTM Container ID."
},
"workspaceId": {
"type": "string",
"description": "GTM Workspace ID."
},
"variableId": {
"type": "string",
"description": "The Variable ID uniquely identifies the GTM Variable."
},
"name": {
"type": "string",
"description": "Variable display name."
},
"type": {
"type": "string",
"description": "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": {
"type": "string",
"description": "User notes on how to apply this variable in the container."
},
"scheduleStartMs": {
"type": "string",
"description": "The start timestamp in milliseconds to schedule a variable."
},
"scheduleEndMs": {
"type": "string",
"description": "The end timestamp in milliseconds to schedule a variable."
},
"parameter": {
"type": "array",
"description": "The variable's parameters, which configure its behavior."
},
"enablingTriggerId": {
"type": "array",
"description": "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": {
"type": "array",
"description": "For mobile containers only. A list of trigger IDs for disabling conditional variables."
},
"fingerprint": {
"type": "string",
"description": "The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified."
},
"parentFolderId": {
"type": "string",
"description": "Parent folder ID."
},
"tagManagerUrl": {
"type": "string",
"description": "Auto-generated link to the tag manager UI."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-tag-manager-v2-variable"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.