Actions84
- 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
Overview
This node integrates with the Google Tag Manager (GTM) API, allowing users to manage various GTM resources programmatically within n8n workflows. Specifically, the "Version" resource with the "Get Version" operation enables retrieving details about a specific container version in GTM.
Common scenarios for this node include:
- Automating retrieval of GTM container version details for auditing or reporting.
- Integrating GTM version data into broader marketing or analytics workflows.
- Using version information to trigger conditional logic based on published or draft versions.
For example, a user might use this node to fetch the details of a particular GTM container version by specifying the Account ID, Container ID, and Version ID, then use that data downstream to verify version status or metadata.
Properties
| Name | Meaning |
|---|---|
| Account ID | The unique identifier of the Google Tag Manager account. |
| Container ID | The unique identifier of the GTM container within the account. |
| Version ID | The unique identifier of the GTM container version to retrieve. |
| Optional Query Parameters | Additional optional parameters to customize the API request. For this operation, typically empty. |
Note: The properties above are required to specify which GTM container version to get.
Output
The output is a JSON object representing the details of the specified GTM container version. This includes all metadata and configuration associated with that version as returned by the GTM API.
The structure corresponds directly to the GTM API's container version resource representation, which may include fields such as version number, description, creation timestamp, and status.
No binary data output is involved in this operation.
Dependencies
- Requires an OAuth2 API credential configured for Google Tag Manager API access.
- The node uses the official GTM API endpoint
https://www.googleapis.com/tagmanager/v2. - Proper permissions on the GTM account and container are necessary to retrieve version information.
Troubleshooting
- Missing Credentials Error: If the node throws an error about missing credentials, ensure that a valid OAuth2 credential for Google Tag Manager is set up and connected.
- Required Parameter Errors: Errors indicating missing Account ID, Container ID, or Version ID mean these must be provided for the operation to succeed.
- API Permission Issues: Insufficient permissions on the GTM account/container can cause authorization errors; verify the OAuth2 token scopes and user permissions.
- Unknown Operation Error: This indicates an invalid operation name was selected; ensure "Get Version" under the "Version" resource is chosen.
- Network or API Errors: Check network connectivity and Google API service status if requests fail unexpectedly.