Actions102
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
- Folder Actions
- Google Tag Configuration Actions
- Tag Actions
- Template Actions
- Transformation Actions
- Trigger Actions
- User Permission Actions
- Variable Actions
- Version Actions
- Workspace Actions
- Zone Actions
Overview
This node integrates with the Google Tag Manager (GTM) API, specifically enabling management of Google Tag Configurations within GTM containers and workspaces. The "List Google Tag Configurations" operation retrieves all Google Tag configurations present in a specified GTM container workspace.
Typical use cases include:
- Automating retrieval of Google Tag configurations for auditing or reporting.
- Integrating GTM tag configuration data into workflows for further processing or synchronization.
- Managing multiple GTM containers by programmatically listing their tag configurations.
For example, a marketing team could use this node to fetch all Google Tag configurations from a container to verify settings or export them for backup.
Properties
| Name | Meaning |
|---|---|
| Account ID | The unique identifier of the GTM Account containing the container. |
| Container ID | The unique identifier of the GTM Container where the Google Tag Configurations reside. |
| Workspace ID | The unique identifier of the GTM Workspace within the container to scope the request. |
| Optional Query Parameters | Additional optional parameters to customize the API request. |
The Optional Query Parameters collection includes various fields, but for the "List Google Tag Configurations" operation, typically no additional parameters are required.
Output
The output is a JSON array where each item represents a Google Tag Configuration object retrieved from the specified GTM container workspace. Each object contains details about an individual Google Tag Configuration as returned by the GTM API.
No binary data is involved in this operation.
Dependencies
- Requires valid Google Tag Manager API credentials with OAuth2 authentication configured in n8n.
- The node uses the Google Tag Manager v2 REST API endpoint:
https://www.googleapis.com/tagmanager/v2. - Proper permissions on the GTM account, container, and workspace are necessary to list Google Tag Configurations.
Troubleshooting
- Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid Google Tag Manager OAuth2 credential is set up and selected.
- Required Parameter Errors: The node requires Account ID, Container ID, and Workspace ID for this operation. Omitting any will cause an error indicating which parameter is missing.
- API Request Failures: Errors from the GTM API (e.g., permission denied, invalid IDs) will be surfaced with messages prefixed by "Error calling GTM API". Verify that the provided IDs are correct and that the authenticated user has access.
- Pagination: If there are many Google Tag Configurations, consider using pagination tokens if supported by the API (via optional query parameters), although this operation does not explicitly expose pagination in the properties.
Links and References
If you need details on other operations or resources, feel free to ask!