Actions27
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
Built-In Variable → List Built-In Variables
AI-generatedOverview
This node interacts with the Google Tag Manager (GTM) API to manage built-in variables within GTM containers. Specifically, the 'List Built-In Variables' operation retrieves all enabled built-in variables for a specified GTM container workspace. This is useful for users who want to programmatically access and manage GTM built-in variables, such as for auditing, reporting, or automation purposes.
Use Case Examples
- A marketing analyst wants to list all enabled built-in variables in a specific GTM container workspace to review which variables are currently active.
- A developer automates the process of syncing GTM built-in variables across multiple containers by listing and then applying changes programmatically.
Properties
| Name | Meaning |
|---|---|
| Account ID | The GTM Account ID to specify which account's container to access. |
| Container ID | The GTM Container ID within the specified account to list built-in variables from. |
| Workspace ID | The GTM Workspace ID within the container to list built-in variables from. |
| Optional Query Parameters | Additional optional parameters to filter or modify the request, such as specifying the type of built-in variable to list. |
Output
JSON
variableId- The ID of the built-in variable.name- The name of the built-in variable.type- The type/category of the built-in variable.parameter- Parameters associated with the built-in variable.
Dependencies
- Google Tag Manager API OAuth2 credentials
Troubleshooting
- Ensure that the GTM Account ID, Container ID, and Workspace ID are correctly provided; missing any of these will cause errors.
- Verify that the OAuth2 credentials for Google Tag Manager API are correctly set up and authorized.
- If the API returns an error, check the error message for missing or invalid parameters and correct them accordingly.
Links
- Google Tag Manager API - List Built-In Variables - Official documentation for the List Built-In Variables endpoint in the GTM API.