Integration · Analytics and data
AI agents for Google Tag Manager
Read and change Google Tag Manager containers: list accounts, containers, workspaces, tags and triggers, see a workspace's pending changes, add a tag.
- Actions
- 10
- Read
- 7
- Write
- 3
Actions
What your agents can do in Google Tag Manager
Read and change Google Tag Manager containers: list accounts, containers, workspaces, tags and triggers, see a workspace's pending changes, add a tag, then turn the workspace into a version and publish it to the live site, signed in with the person's Google account (Tag Manager API v2).
Read 7
Look things up. Nothing changes.
List accounts
Lists the Tag Manager accounts the signed-in person can reach: each with accountId, name, path (accounts/{accountId}) and tagManagerUrl.
List containers
Lists an account's containers: each with containerId, name, publicId (the GTM-XXXXXX code on the site), usageContext (web, android, ios, server), domainName and tagManagerUrl.
List workspaces
Lists a container's workspaces (drafts of changes): each with workspaceId, name, description and fingerprint.
List tags
Lists the tags in a workspace: each with tagId, name, type.
List triggers
Lists the triggers in a workspace: each with triggerId, name, type (pageview, click, linkClick, formSubmission, customEvent, timer …), filter, customEventFilter and autoEventFilter.
See a workspace's pending changes
Lists what a workspace changes against the latest version, before it is published.
Get the latest version
Reads the header of a container's latest version: containerVersionId, name, numTags, numTriggers, numVariables and deleted.
Write 3
Create, change or send.
Add a tag
Adds a tag to a workspace (nothing goes live until a version is created and published).
Create a version from a workspace
Turns a workspace's changes into a new container version, with a name and notes, ready to publish; the workspace is then replaced by a fresh one.
Publish a version
Publishes a container version so its tags run on the live site or app straight away.
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Sign in with Google and approve access (OAuth).
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your Google Tag Manager data
Ask a question in plain words. The agent can list accounts, list containers or list workspaces in Google Tag Manager, then answers with what it found.
- 02
Let an agent update Google Tag Manager
Have the agent add a tag or create a version from a workspace in Google Tag Manager as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent Google Tag Manager and Slack: it can list accounts in Google Tag Manager and post a summary to a Slack channel in the same run.
FAQ
Google Tag Manager and MyDeepAgents
Can MyDeepAgents connect to Google Tag Manager?
Yes. The Google Tag Manager connector has 10 actions: 7 read and 3 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect Google Tag Manager?
Sign in with Google and approve access (OAuth). Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in Google Tag Manager without asking?
Only if you let it. Each of the 3 actions that change data can be set to wait for a person's approval before it runs.
Can I use Google Tag Manager in workflows as well as agents?
Yes. Every Google Tag Manager action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put Google Tag Manager to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.