Google Tag Manager (Improved) icon

Google Tag Manager (Improved)

Use the Google Tag Manager API

Built-In Variable → Revert Built-In Variable

AI-generated

Overview

This node operation reverts changes made to a Google Tag Manager (GTM) Built-In Variable within a specified GTM Workspace. It is useful when you want to undo modifications to a built-in variable and restore it to its previous state in the workspace.

Use Case Examples

  1. Revert a built-in variable in a GTM workspace to undo recent changes.
  2. Use this operation to restore a built-in variable to its original configuration after accidental edits.

Properties

Name Meaning
Account ID The GTM Account ID where the built-in variable exists.
Container ID The GTM Container ID that contains the built-in variable.
Workspace ID The GTM Workspace ID where the built-in variable changes are to be reverted.
Optional Query Parameters Additional optional parameters for the revert operation, such as the type of built-in variable or permission flags.

Output

JSON

  • accountId - The GTM Account ID used in the operation.
  • containerId - The GTM Container ID used in the operation.
  • workspaceId - The GTM Workspace ID used in the operation.
  • builtInVariableRevertResponse - The response from the GTM API after reverting the built-in variable, containing details of the reverted variable.

Dependencies

  • Google Tag Manager API OAuth2 credentials

Troubleshooting

  • Ensure that the Account ID, Container ID, and Workspace ID are provided; missing any of these will cause an error.
  • Verify that the user has the necessary permissions to revert built-in variables in the specified GTM workspace.
  • Check that the OAuth2 credentials for Google Tag Manager API are correctly configured and valid.
  • Common error messages include missing required parameters or permission denied errors; resolving these involves providing the missing IDs or updating user permissions.

Links

Discussion