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, allowing users to manage various GTM resources programmatically. Specifically, the "Trigger" resource with the "Revert Trigger" operation enables reverting changes made to a GTM Trigger within a specified workspace. This is useful when you want to discard recent modifications and restore the trigger to its previous state.
Common scenarios include:
- Undoing accidental or unwanted changes to triggers in a GTM workspace.
- Automating rollback processes during deployment pipelines.
- Managing GTM configurations programmatically without manual intervention.
Example: If a user modifies a trigger's conditions but decides to revert those changes, this operation can be used to reset the trigger to its last saved version.
Properties
| Name | Meaning |
|---|---|
| Account ID | The unique identifier of the GTM Account where the trigger resides. |
| Container ID | The unique identifier of the GTM Container that holds the workspace and trigger. |
| Workspace ID | The unique identifier of the GTM Workspace containing the trigger to revert. |
| Trigger ID | The unique identifier of the GTM Trigger to revert changes for. |
| Optional Query Parameters | Additional optional parameters to customize the request. For this operation, typically empty. |
Output
The output is a JSON object representing the reverted GTM Trigger resource as returned by the Google Tag Manager API. It contains all properties of the trigger after the revert operation, reflecting its restored state.
No binary data is involved in this operation.
Dependencies
- Requires an OAuth2 API credential configured for Google Tag Manager API access.
- The node uses the base URL
https://www.googleapis.com/tagmanager/v2for API requests. - Proper permissions on the GTM account, container, and workspace are necessary to perform revert operations.
Troubleshooting
- Missing Required IDs: Errors will occur if any of the required IDs (Account ID, Container ID, Workspace ID, Trigger ID) are not provided. Ensure all these fields are filled correctly.
- Authentication Errors: If the OAuth2 credentials are missing or invalid, the node will throw an authentication error. Verify that the Google Tag Manager API credentials are properly set up.
- Permission Denied: Insufficient permissions on the GTM account or workspace may cause failures. Confirm that the authenticated user has edit rights.
- Unknown Operation Error: If the operation name is incorrect or unsupported, an error indicating "Unknown operation" will be thrown.
- API Request Failures: Network issues or API quota limits might cause errors. Check connectivity and Google API quotas.