Volver al catálogo

Google Tag Manager

google_tag_manager

Google Tag Manager provides programmatic administration of accounts, containers, workspaces, tags, triggers, variables, versions, publishing, and user permissions.

Acciones
60
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (60)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Bulk Update WorkspaceGOOGLE_TAG_MANAGER_BULK_UPDATE_WORKSPACEAcción

Apply multiple typed entity additions, updates, or deletions to a Google Tag Manager workspace in one request without publishing the workspace. Changes can permanently delete workspace entities and cannot be safely rolled back as a single operation.

Parámetros de entrada

  • changesobject[]Obligatorio

    Entity additions, updates, or deletions. Added entity IDs must be unique values starting with new_ followed by decimal digits; references may use those IDs.

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Combine ContainersGOOGLE_TAG_MANAGER_COMBINE_CONTAINERSAcción

Warning: This method is no longer supported and will soon be removed. Irreversibly merge another container's configuration into an existing target Google Tag Manager container. This broad-impact operation mutates the target and has no safe automatic rollback; it may also enable the target's user-permissions feature when explicitly allowed. Verify both containers and the setting source, and use disposable or backed-up resources.

Parámetros de entrada

  • setting_sourcestringenum

    Which container supplies the resulting configuration settings: current keeps settings from the target, other uses settings from the source, and settingSourceUnspecified leaves the choice unspecified.

    settingSourceUnspecifiedcurrentother
  • source_container_idstringObligatorio

    ID of the other container whose configuration will be merged into the target container. Verify the source and target before calling.

  • target_container_pathstringObligatorio

    API-relative path of the existing target container that will be mutated, in the form accounts/{account_id}/containers/{container_id}. The combine operation is broad-impact and not safely reversible.

  • allow_user_permission_feature_updateboolean

    Set true only to permit this combine to enable the target container's user-permissions feature. The provider rejects a combine that requires that feature change when this is false.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create ContainerGOOGLE_TAG_MANAGER_CREATE_CONTAINERAcción

Create a Google Tag Manager container under an account.

Parámetros de entrada

  • containerobjectObligatorio

    Writable container configuration. Omit fields that should use provider defaults.

  • account_pathstringObligatorio

    Parent account path in the form accounts/{account_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Container VersionGOOGLE_TAG_MANAGER_CREATE_CONTAINER_VERSIONAcción

Create a Google Tag Manager container version from a workspace and make it the synchronization base without publishing it live. On successful version creation, GTM deletes the source workspace and may return a replacement workspace as new_workspace_path. Do not call this on a workspace that must remain at its current path. The exact JSON body is the root version-options object with required name and optional notes fields; it is not wrapped in another property. Compiler errors, synchronization errors, and merge conflicts are surfaced as failed actions even if the API returns HTTP 200.

Parámetros de entrada

  • namestringObligatorio

    Display name sent as the name field in the root version-options request body.

  • notesstring

    Optional notes sent as the notes field in the root version-options request body; omitted when not supplied.

  • workspace_pathstringObligatorio

    GTM API-relative path of the workspace to snapshot. After successful version creation, GTM may return a replacement workspace path when it creates one.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create EnvironmentGOOGLE_TAG_MANAGER_CREATE_ENVIRONMENTAcción

Create a Google Tag Manager user environment, optionally linked to either a workspace or a container version.

Parámetros de entrada

  • environmentobjectObligatorio

    Provider-shaped writable Environment fields. Omit fields that should use Google Tag Manager defaults.

  • container_pathstringObligatorio

    Parent GTM container API-relative path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create User PermissionGOOGLE_TAG_MANAGER_CREATE_USER_PERMISSIONAcción

Grant a user broad Google Tag Manager account and container access. This is a sensitive access-control operation that can assign account admin and container edit, approve, or publish privileges; use it only for an explicitly authorized email address and reviewed container IDs.

Parámetros de entrada

  • permissionobjectObligatorio

    User identity plus the exact account and optional container access to grant.

  • account_pathstringObligatorio

    Account API-relative path receiving the user grant, such as accounts/123456.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create WorkspaceGOOGLE_TAG_MANAGER_CREATE_WORKSPACEAcción

Create an isolated Google Tag Manager workspace in a container for staging configuration changes.

Parámetros de entrada

  • workspaceobjectObligatorio

    Writable workspace fields. Read-only IDs, paths, and fingerprint are omitted.

  • container_pathstringObligatorio

    Parent GTM container API-relative path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Workspace EntityGOOGLE_TAG_MANAGER_CREATE_WORKSPACE_ENTITYAcción

Create one strictly typed client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone in a Google Tag Manager workspace without publishing it.

Parámetros de entrada

  • entityobjectObligatorio

    Exactly one provider-shaped create payload, under the key matching entity_type. Read-only IDs, paths, fingerprints, and UI URLs are rejected.

  • entity_typestringObligatorioenum

    Entity family to create; this must match the one payload in entity.

    clientfoldergoogle_tag_configtagtemplatetransformationtriggervariablezone
  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete ContainerGOOGLE_TAG_MANAGER_DELETE_CONTAINERAcción

Permanently delete a Google Tag Manager container and all of its configuration. This operation has no API confirmation step or undo.

Parámetros de entrada

  • container_pathstringObligatorio

    GTM API-relative path of the container to permanently delete, in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Container VersionGOOGLE_TAG_MANAGER_DELETE_CONTAINER_VERSIONAcción

Archive/delete a stored Google Tag Manager container version. The operation has no confirmation step and makes the version unavailable until a separate undelete action restores it.

Parámetros de entrada

  • version_pathstringObligatorio

    GTM API-relative path of the stored container version to archive/delete, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. The version remains recoverable only through the separate undelete action.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete EnvironmentGOOGLE_TAG_MANAGER_DELETE_ENVIRONMENTAcción

Permanently delete a user-created Google Tag Manager USER environment. System LIVE, LATEST, and WORKSPACE environments cannot be deleted, and this operation has no confirmation step or undo.

Parámetros de entrada

  • environment_pathstringObligatorio

    GTM API-relative path of the user-created USER environment to permanently delete, in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete User PermissionGOOGLE_TAG_MANAGER_DELETE_USER_PERMISSIONAcción

Remove the user identified by a Google Tag Manager user-permission path from the account, immediately revoking that user's access to the account and all of its containers. This destructive access revocation has no confirmation step.

Parámetros de entrada

  • permission_pathstringObligatorio

    GTM API-relative path of the user permission to delete. Deleting it immediately revokes that user's access to the account and every container in the account.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete WorkspaceGOOGLE_TAG_MANAGER_DELETE_WORKSPACEAcción

Permanently delete a Google Tag Manager workspace and all of its unpublished changes. This destructive operation has no API confirmation step or undo.

Parámetros de entrada

  • workspace_pathstringObligatorio

    GTM API-relative path of the workspace to permanently delete, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Workspace EntityGOOGLE_TAG_MANAGER_DELETE_WORKSPACE_ENTITYAcción

Delete one client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone from a Google Tag Manager workspace. This destructive staged change can affect a later published container version; only delete entities created or explicitly selected by the caller.

Parámetros de entrada

  • entity_pathstringObligatorio

    Full GTM API-relative path of the workspace entity to delete, such as accounts/123/containers/456/workspaces/789/tags/1011. The deletion is staged in the workspace and can affect a later published version.

  • entity_typestringObligatorioenum

    Entity family to delete. It must match the family segment in entity_path.

    clientfoldergoogle_tag_configtagtemplatetransformationtriggervariablezone

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Disable Built-In VariablesGOOGLE_TAG_MANAGER_DISABLE_BUILT_IN_VARIABLESAcción

Disable one or more built-in variable types in a Google Tag Manager workspace. This destructive operation removes those variables from the workspace without a confirmation step.

Parámetros de entrada

  • variable_typesstring[]Obligatorio

    One or more provider-enumerated built-in variable types to disable. Each value is sent as a repeated type query parameter.

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Enable Built-In VariablesGOOGLE_TAG_MANAGER_ENABLE_BUILT_IN_VARIABLESAcción

Enable one or more provider-defined built-in variable types in a Google Tag Manager workspace.

Parámetros de entrada

  • variable_typesstring[]Obligatorio

    One or more provider-defined built-in variable types to enable. Each value is sent as a repeated type query parameter.

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get AccountGOOGLE_TAG_MANAGER_GET_ACCOUNTAcción

Get one GTM account by its API-relative path.

Parámetros de entrada

  • account_pathstringObligatorio

    Account API-relative path in the format accounts/{account_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ContainerGOOGLE_TAG_MANAGER_GET_CONTAINERAcción

Get one GTM container by path, including its configuration metadata, feature flags, tag IDs, and current fingerprint.

Parámetros de entrada

  • container_pathstringObligatorio

    GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Container SnippetGOOGLE_TAG_MANAGER_GET_CONTAINER_SNIPPETAcción

Return the installation snippet for a GTM container without changing it.

Parámetros de entrada

  • container_pathstringObligatorio

    GTM API-relative path of the container whose installation snippet to retrieve, in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Container VersionGOOGLE_TAG_MANAGER_GET_CONTAINER_VERSIONAcción

Get a complete GTM container version snapshot by path, including every nested entity family returned by Google Tag Manager.

Parámetros de entrada

  • version_pathstringObligatorio

    GTM API-relative container-version path in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}.

  • container_version_idstring

    Optional GTM container-version selector. Use 'published' only when intentionally retrieving the currently published version through this endpoint.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get DestinationGOOGLE_TAG_MANAGER_GET_DESTINATIONAcción

Warning: This method is no longer supported and will soon be removed. Get one linked Google tag destination by its GTM API-relative path.

Parámetros de entrada

  • destination_pathstringObligatorio

    GTM API-relative destination path returned by list_destinations, in the form accounts/{account_id}/containers/{container_id}/destinations/{destination_link_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get EnvironmentGOOGLE_TAG_MANAGER_GET_ENVIRONMENTAcción

Get one GTM environment, including its authorization metadata, linked container version or workspace, preview settings, and fingerprint.

Parámetros de entrada

  • environment_pathstringObligatorio

    GTM API-relative environment path in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Latest Version HeaderGOOGLE_TAG_MANAGER_GET_LATEST_VERSION_HEADERAcción

Get the latest GTM container-version header for synchronization context, including its version ID, deletion state, and entity counts.

Parámetros de entrada

  • container_pathstringObligatorio

    GTM API-relative parent container path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Live Container VersionGOOGLE_TAG_MANAGER_GET_LIVE_CONTAINER_VERSIONAcción

Get the currently published live GTM container version, including every nested entity family returned by Google Tag Manager.

Parámetros de entrada

  • container_pathstringObligatorio

    GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get User PermissionGOOGLE_TAG_MANAGER_GET_USER_PERMISSIONAcción

Get one user's GTM account and container access by permission path.

Parámetros de entrada

  • permission_pathstringObligatorio

    GTM API-relative user-permission path returned by list_user_permissions, in the form accounts/{account_id}/user_permissions/{user_permission_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get WorkspaceGOOGLE_TAG_MANAGER_GET_WORKSPACEAcción

Get one GTM workspace by path, including its current fingerprint.

Parámetros de entrada

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Workspace EntityGOOGLE_TAG_MANAGER_GET_WORKSPACE_ENTITYAcción

Get one selected client, folder, Google tag config, tag, template, transformation, trigger, variable, or zone by its GTM API-relative path.

Parámetros de entrada

  • entity_pathstringObligatorio

    Full GTM API-relative entity path returned by List Workspace Entities, such as accounts/123/containers/456/workspaces/789/tags/1011.

  • entity_typestringObligatorioenum

    Expected GTM entity family. This selects a fixed provider route and response schema.

    clientfoldergoogle_tag_configtagtemplatetransformationtriggervariablezone

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Workspace StatusGOOGLE_TAG_MANAGER_GET_WORKSPACE_STATUSAcción

Return modified entities and merge conflicts in a GTM workspace before synchronization or version creation.

Parámetros de entrada

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Import Template From GalleryGOOGLE_TAG_MANAGER_IMPORT_TEMPLATE_FROM_GALLERYAcción

Import an exact Community Template Gallery repository revision into a Google Tag Manager workspace after explicitly acknowledging its requested permissions. Omit gallery_sha only when the provider's latest revision is intended.

Parámetros de entrada

  • gallery_shastring

    Exact repository commit SHA to import. Omit this field to let Google Tag Manager select the latest SHA.

  • gallery_ownerstringObligatorio

    Exact owner of the Community Template Gallery repository.

  • workspace_pathstringObligatorio

    GTM API-relative path of the workspace receiving the template, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

  • gallery_repositorystringObligatorio

    Exact name of the Community Template Gallery repository.

  • acknowledge_permissionsbooleanObligatorio

    Must be true to explicitly accept the template's requested permissions; Google Tag Manager rejects the import otherwise.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Link DestinationGOOGLE_TAG_MANAGER_LINK_DESTINATIONAcción

Move a Google tag destination from its currently linked container to a target GTM container. This broad-impact, irreversible relink causes all future events from the target source container to be sent to the destination, stops the previous container from being its source, and may enable user-permission support when explicitly allowed. Verify both the destination and target container before calling. Google has deprecated this provider method.

Parámetros de entrada

  • container_pathstringObligatorio

    API-relative path of the target container that will become the source container, in the form accounts/{account_id}/containers/{container_id}. After linking, all future events from this container are sent to the destination.

  • destination_idstringObligatorio

    ID of the destination to move and link. Linking removes the destination from its currently linked container and sends it all future events from the target source container.

  • allow_user_permission_feature_updateboolean

    Set true only to permit GTM to enable the target container's user-permissions feature when required. The link fails instead of changing that feature when this is false.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List AccountsGOOGLE_TAG_MANAGER_LIST_ACCOUNTSAcción

List GTM accounts visible to the connected user, one page at a time.

Parámetros de entrada

  • next_cursorstring

    Continuation cursor from a previous response. Omit for the first page and pass it back unchanged to fetch the next page.

  • include_google_tagsboolean

    Set true to also retrieve accounts associated with Google tags.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Built-In VariablesGOOGLE_TAG_MANAGER_LIST_BUILT_IN_VARIABLESAcción

List enabled built-in variables in a workspace one page at a time.

Parámetros de entrada

  • next_cursorstring

    Continuation token returned by a previous call; omit for the first page.

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ContainersGOOGLE_TAG_MANAGER_LIST_CONTAINERSAcción

List GTM containers under an account with paths, public IDs, fingerprints, and capability flags, one page at a time.

Parámetros de entrada

  • next_cursorstring

    Continuation token returned by a previous call; omit for the first page.

  • account_pathstringObligatorio

    Parent GTM account API-relative path, such as accounts/123456789.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Container Version HeadersGOOGLE_TAG_MANAGER_LIST_CONTAINER_VERSION_HEADERSAcción

List lightweight GTM container-version headers one page at a time, optionally including deleted versions.

Parámetros de entrada

  • next_cursorstring

    Continuation token returned by a previous call; omit for the first page.

  • container_pathstringObligatorio

    Parent GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}.

  • include_deletedboolean

    Include archived or deleted container versions.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List DestinationsGOOGLE_TAG_MANAGER_LIST_DESTINATIONSAcción

List all destinations linked to a GTM container. The provider exposes no continuation input, so this returns one provider response.

Parámetros de entrada

  • container_pathstringObligatorio

    Parent GTM container API-relative path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List EnvironmentsGOOGLE_TAG_MANAGER_LIST_ENVIRONMENTSAcción

List GTM environments in a container one page at a time.

Parámetros de entrada

  • next_cursorstring

    Continuation token returned by a previous call; omit for the first page.

  • container_pathstringObligatorio

    Parent GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Folder EntitiesGOOGLE_TAG_MANAGER_LIST_FOLDER_ENTITIESAcción

List the tags, triggers, and variables contained in one Google Tag Manager folder, one page at a time.

Parámetros de entrada

  • folder_pathstringObligatorio

    GTM API-relative folder path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id}.

  • next_cursorstring

    Continuation token returned by a previous call for the same folder; omit for the first page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List User PermissionsGOOGLE_TAG_MANAGER_LIST_USER_PERMISSIONSAcción

List users with access to a GTM account and their account- and container-level permissions one page at a time. Results include sensitive user email addresses.

Parámetros de entrada

  • next_cursorstring

    Continuation token returned by a previous call; omit for the first page.

  • account_pathstringObligatorio

    Parent GTM API-relative account path in the form accounts/{account_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Workspace EntitiesGOOGLE_TAG_MANAGER_LIST_WORKSPACE_ENTITIESAcción

List one selected GTM workspace entity family: clients, folders, Google tag configs, tags, templates, transformations, triggers, variables, or zones.

Parámetros de entrada

  • entity_typestringObligatorioenum

    Entity family to list. Supported values are client, folder, google_tag_config, tag, template, transformation, trigger, variable, and zone.

    clientfoldergoogle_tag_configtagtemplatetransformationtriggervariablezone
  • next_cursorstring

    Continuation token returned by a previous call for the same workspace and entity type; omit for the first page.

  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List WorkspacesGOOGLE_TAG_MANAGER_LIST_WORKSPACESAcción

List GTM workspaces in a container with paths and fingerprints, one page at a time.

Parámetros de entrada

  • next_cursorstring

    Continuation token returned by a previous call; omit for the first page.

  • container_pathstringObligatorio

    Parent GTM API-relative container path in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Look Up ContainerGOOGLE_TAG_MANAGER_LOOKUP_CONTAINERAcción

Find one Google Tag Manager container by exactly one tag ID or destination ID.

Parámetros de entrada

  • tag_idstring

    Tag ID to resolve; provide exactly one of tag_id or destination_id.

  • destination_idstring

    Destination ID to resolve; provide exactly one of destination_id or tag_id.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Move Container Tag IDGOOGLE_TAG_MANAGER_MOVE_CONTAINER_TAG_IDAcción

Move a tag ID out of a GTM container into a newly created Google tag. This deprecated, irreversible container-level operation removes the ID from the source container across its workspaces and associated configuration; it is not scoped to one workspace. It can also copy tag settings, users, and accepted terms, and may enable user-permission support.

Parámetros de entrada

  • tag_idstringObligatorio

    Tag ID to remove from the current container and move to the newly created Google tag.

  • tag_namestringObligatorio

    Name for the newly created Google tag that receives the tag ID.

  • copy_usersboolean

    Whether to copy the current Google tag's users to the new tag.

  • copy_settingsboolean

    Whether to copy the current Google tag's settings to the new tag.

  • container_pathstringObligatorio

    Current GTM container path in the form accounts/{account_id}/containers/{container_id}. The tag ID is removed from this container at container scope, not from only one workspace.

  • copy_terms_of_serviceboolean

    Whether to accept all terms-of-service agreements copied from the current tag. The provider can reject the operation unless this is true.

  • allow_user_permission_feature_updateboolean

    Whether GTM may enable the container's user-permissions feature when the move requires it. The provider rejects such an update when false.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Move Entities To FolderGOOGLE_TAG_MANAGER_MOVE_ENTITIES_TO_FOLDERAcción

Move selected tags, triggers, and variables into a Google Tag Manager folder, or move them out of folders by targeting folder ID 0.

Parámetros de entrada

  • folderobjectObligatorio

    Provider-shaped destination Folder body. Identity fields, when supplied, must identify the same folder as folder_path.

  • tag_idsstring[]

    Tag IDs to move, each sent as a repeated tagId query parameter.

  • folder_pathstringObligatorio

    Destination GTM folder API-relative path. Use folder ID 0 to move the selected entities out of their current folders.

  • trigger_idsstring[]

    Trigger IDs to move, each sent as a repeated triggerId query parameter.

  • variable_idsstring[]

    Variable IDs to move, each sent as a repeated variableId query parameter.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Publish Container VersionGOOGLE_TAG_MANAGER_PUBLISH_CONTAINER_VERSIONAcción

Publish a specific Google Tag Manager container version to live traffic immediately. This is not a preview: it changes production tagging and has irreversible live impact for traffic processed before any later rollback. Verify the exact version and its fingerprint before publishing. A Google compiler error is surfaced as a failed action even when the API returns HTTP 200.

Parámetros de entrada

  • fingerprintstring

    Latest stored version fingerprint for optimistic concurrency. When set, publishing fails if the version changed since this fingerprint was read.

  • version_pathstringObligatorio

    GTM API-relative path of the specific container version to publish to live traffic, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}. Publishing has irreversible live impact; verify the account, container, and version before calling.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Quick Preview WorkspaceGOOGLE_TAG_MANAGER_QUICK_PREVIEW_WORKSPACEAcción

Create a temporary Google Tag Manager container version from all entities in a workspace for preview without publishing it to live traffic. Compiler errors, synchronization errors, and merge conflicts are returned as failed actions rather than successful previews.

Parámetros de entrada

  • workspace_pathstringObligatorio

    GTM API-relative path of the workspace to compile into a temporary preview version, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Reauthorize EnvironmentGOOGLE_TAG_MANAGER_REAUTHORIZE_ENVIRONMENTAcción

Reauthorize a Google Tag Manager environment and rotate its authorization metadata for preview or debug use. This is a broad-impact, irreversible operation: the existing authorization code can become invalid immediately, breaking clients that still use it.

Parámetros de entrada

  • environmentobjectObligatorio

    Provider-shaped current Environment state to submit. Supply only fields that should be sent; omitted and null fields are not included in the body.

  • environment_pathstringObligatorio

    GTM API-relative environment path in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}. Reauthorizing it can immediately invalidate its existing authorization code.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Resolve Workspace ConflictGOOGLE_TAG_MANAGER_RESOLVE_WORKSPACE_CONFLICTAcción

Resolve one Google Tag Manager workspace merge conflict by replacing the conflicted entity with exactly one complete, typed Entity resolution. Use the entityInWorkspace fingerprint from the conflict to prevent a concurrent overwrite.

Parámetros de entrada

  • fingerprintstring

    Fingerprint of entityInWorkspace from the merge conflict. It is sent only as a query parameter for optimistic concurrency.

  • workspace_pathstringObligatorio

    API-relative path of the workspace containing the conflict, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

  • resolved_entityobjectObligatorio

    Complete provider-shaped Entity resolution. Set exactly one of builtInVariable, client, customTemplate, folder, gtagConfig, tag, transformation, trigger, variable, or zone.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Resolve Workspace ConflictsGOOGLE_TAG_MANAGER_RESOLVE_WORKSPACE_CONFLICTSAcción

Sequentially resolve 1-25 Google Tag Manager workspace merge conflicts. Each successful item mutates workspace state without publishing it, so partial success is possible. Processing stops after the first failed or unknown provider outcome, and all later items are marked not_attempted.

Parámetros de entrada

  • resolutionsobject[]Obligatorio

    Ordered conflict resolutions to apply sequentially. Pass 1-25 items; each item must contain one complete typed resolved_entity and its corresponding fingerprint when available.

  • workspace_pathstringObligatorio

    API-relative path of the workspace containing the conflicts, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Revert Built-In VariableGOOGLE_TAG_MANAGER_REVERT_BUILT_IN_VARIABLEAcción

Revert one built-in variable type in a Google Tag Manager workspace to its latest synchronized base state. This permanently discards current workspace changes to that variable and may leave it enabled or disabled, as reported in the result.

Parámetros de entrada

  • variable_typestringObligatorioenum

    Single provider-enumerated built-in variable type to revert.

    builtInVariableTypeUnspecifiedpageUrlpageHostnamepagePathreferrereventclickElementclickClassesclickIdclickTargetclickUrlclickText+105
  • workspace_pathstringObligatorio

    GTM API-relative workspace path in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Revert Workspace EntityGOOGLE_TAG_MANAGER_REVERT_WORKSPACE_ENTITYAcción

Revert a client, folder, tag, template, transformation, trigger, variable, or zone to its latest synchronized base state without publishing it. Current workspace changes to the entity are permanently discarded, and an entity absent from the base may be removed.

Parámetros de entrada

  • entity_pathstringObligatorio

    Full GTM API-relative entity path, such as accounts/123/containers/456/workspaces/789/tags/1011.

  • entity_typestringObligatorioenum

    Revert-capable GTM entity family. Google tag configurations do not support revert.

    clientfoldertagtemplatetransformationtriggervariablezone
  • fingerprintstring

    Latest workspace entity fingerprint for optimistic concurrency. It is sent only as the fingerprint query parameter.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Set Latest Container VersionGOOGLE_TAG_MANAGER_SET_LATEST_CONTAINER_VERSIONAcción

Set a stored Google Tag Manager container version as the latest base used when synchronizing workspaces and detecting conflicts or errors. This changes workspace synchronization state only; it does not publish the version or change the container version serving live traffic.

Parámetros de entrada

  • version_pathstringObligatorio

    GTM API-relative path of the stored container version to make the latest workspace synchronization base. This changes conflict and error detection for workspace synchronization but does not publish the version to live traffic.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Sync WorkspaceGOOGLE_TAG_MANAGER_SYNC_WORKSPACEAcción

Synchronize a Google Tag Manager workspace to the latest container version. GTM updates unmodified workspace entities to the latest version and returns conflicts for modified entities. A response containing conflicts is still a successful synchronization, but no container version can be created until all conflicts are resolved.

Parámetros de entrada

  • workspace_pathstringObligatorio

    GTM API-relative path of the workspace to synchronize, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Undelete Container VersionGOOGLE_TAG_MANAGER_UNDELETE_CONTAINER_VERSIONAcción

Restore a previously deleted Google Tag Manager container version.

Parámetros de entrada

  • version_pathstringObligatorio

    GTM API-relative path of the deleted container version to restore, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update AccountGOOGLE_TAG_MANAGER_UPDATE_ACCOUNTAcción

Update one or more editable Google Tag Manager account fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

Parámetros de entrada

  • accountobjectObligatorio

    One or more writable account fields to update. Supply name, share_data, or both; read-only fields are not accepted.

  • fingerprintstring

    Latest account fingerprint to require for optimistic concurrency.

  • account_pathstringObligatorio

    Account API-relative path to update, such as accounts/123456.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update ContainerGOOGLE_TAG_MANAGER_UPDATE_CONTAINERAcción

Update one or more editable Google Tag Manager container fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

Parámetros de entrada

  • containerobjectObligatorio

    One or more writable container fields to update. Omit read-only fields and fields that should not be changed.

  • fingerprintstring

    Latest container fingerprint to require for optimistic concurrency.

  • container_pathstringObligatorio

    GTM API-relative path of the container to update, in the form accounts/{account_id}/containers/{container_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Container VersionGOOGLE_TAG_MANAGER_UPDATE_CONTAINER_VERSIONAcción

Update one or more editable metadata or content fields of a stored Google Tag Manager container version, optionally requiring its latest fingerprint to prevent a concurrent overwrite.

Parámetros de entrada

  • fingerprintstring

    Latest stored-version fingerprint to require for optimistic concurrency.

  • version_pathstringObligatorio

    GTM API-relative path of the stored version to update, in the form accounts/{account_id}/containers/{container_id}/versions/{version_id}.

  • container_versionobjectObligatorio

    One or more provider-shaped version fields to update. Supply only the fields to replace; read-only IDs, paths, deletion state, fingerprint, and UI URL are omitted.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update EnvironmentGOOGLE_TAG_MANAGER_UPDATE_ENVIRONMENTAcción

Update one or more writable Google Tag Manager environment fields. Non-user environments permit only debug and preview URL changes; an optional current fingerprint prevents concurrent overwrite.

Parámetros de entrada

  • environmentobjectObligatorio

    One or more writable environment fields to update. For a non-user environment, supply only enable_debug and url because Google Tag Manager rejects other changes.

  • fingerprintstring

    Latest environment fingerprint to require for optimistic concurrency.

  • environment_pathstringObligatorio

    GTM API-relative path of the environment to update, in the form accounts/{account_id}/containers/{container_id}/environments/{environment_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update User PermissionGOOGLE_TAG_MANAGER_UPDATE_USER_PERMISSIONAcción

Replace an existing user's Google Tag Manager account and container access. This can immediately grant or revoke account administration and container read, edit, approve, or publish capabilities. The supplied access is a complete replacement, so verify the current permission first and include every container grant that must remain. This can lock the affected user, including yourself, out of the account or its containers.

Parámetros de entrada

  • permissionobjectObligatorio

    Complete replacement access for the existing user. The user identity comes from permission_path and cannot be changed by this action. Omitted container grants are not preserved.

  • permission_pathstringObligatorio

    Existing GTM user-permission API-relative path whose access will be replaced, in the form accounts/{account_id}/user_permissions/{user_permission_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update WorkspaceGOOGLE_TAG_MANAGER_UPDATE_WORKSPACEAcción

Update one or more editable Google Tag Manager workspace metadata fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

Parámetros de entrada

  • workspaceobjectObligatorio

    One or more writable workspace metadata fields to update.

  • fingerprintstring

    Latest workspace fingerprint to require for optimistic concurrency. It is sent as a query parameter, not in the workspace body.

  • workspace_pathstringObligatorio

    GTM API-relative path of the workspace to update, in the form accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Workspace EntityGOOGLE_TAG_MANAGER_UPDATE_WORKSPACE_ENTITYAcción

Update one strictly typed client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone in a Google Tag Manager workspace, optionally guarded by its latest fingerprint. This stages the change but does not publish it.

Parámetros de entrada

  • entityobjectObligatorio

    Exactly one provider-shaped payload under the key matching entity_type, with one or more writable fields to update. Read-only fields are rejected.

  • entity_pathstringObligatorio

    Full GTM API-relative entity path, such as accounts/123/containers/456/workspaces/789/tags/1011.

  • entity_typestringObligatorioenum

    Entity family to update; selects exact path and body validation.

    clientfoldergoogle_tag_configtagtemplatetransformationtriggervariablezone
  • fingerprintstring

    Latest entity fingerprint for optimistic concurrency. It is sent only as the fingerprint query parameter.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not