Build and Publish a Tag End to End
A 5-step recipe with Google Tag Manager. We can help you get access.
Recipe · 5 steps
Build and Publish a Tag End to End
with Google Tag Manager · Digital Marketing Management
Author a trigger and tag in a fresh workspace, then version and publish.
- Open a new workspace inside the supplied container.
- Create a trigger in the new workspace.
- Create a tag that fires on the new trigger.
- Freeze the workspace into a container version.
- Publish the new container version so it becomes the live version.
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.
- triggerName: Display name for the new trigger.
- triggerType: GTM trigger event type (e.g. pageview, click).
- tagName: Display name for the new tag.
- tagType: GTM tag type identifier (e.g. html, gaawe).
- versionName: Display name for the container version that will be published.
For your developer
Arazzo workflow google-tag-manager:build-and-publish-tag, 5 operations: createWorkspace → createTrigger → createTag → createWorkspaceVersion → publishContainerVersion. Specs on APIs.io.