capabilities.work

Build a Variable-Backed Tag

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

Recipe · 3 steps

Build a Variable-Backed Tag

with Google Tag Manager · Digital Marketing Management

Create a workspace, a variable, and a tag that consumes the variable.

  1. Open a new workspace inside the supplied container.
  2. Create a variable in the new workspace.
  3. Create a tag whose parameter references the new variable by name.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token for the Tag Manager API.
  • containerPath: The container API relative path, e.g. accounts/{accountId}/containers/{containerId}.
  • workspaceName: Display name for the new workspace.
  • variableName: Display name for the new variable.
  • variableType: GTM variable type identifier (e.g. c, jsm, v).
  • tagName: Display name for the new tag.
  • tagType: GTM tag type identifier (e.g. html, gaawe).
  • parameterKey: The tag parameter key that will hold the variable reference.
For your developer

Arazzo workflow google-tag-manager:build-variable-backed-tag, 3 operations: createWorkspace → createVariable → createTag. Specs on APIs.io.