capabilities.work

Safely Update a Tag

A 2-step recipe with Google Tag Manager. We can help you get access.

Recipe · 2 steps

Safely Update a Tag

with Google Tag Manager · Digital Marketing Management

Read a tag's fingerprint, then update the tag guarded by that fingerprint.

  1. Get the tag to read its current fingerprint before updating.
  2. Update the tag, passing the captured fingerprint so the write fails if the tag changed in storage.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token for the Tag Manager API.
  • tagPath: The tag API relative path, e.g. accounts/{accountId}/containers/{containerId}/workspaces/{workspaceId}/tags/{tagId}.
  • tagName: The new display name to set on the tag.
  • tagType: GTM tag type identifier (e.g. html, gaawe).
For your developer

Arazzo workflow google-tag-manager:safe-update-tag, 2 operations: getTag → updateTag. Specs on APIs.io.