create_tag_manager_tag
Install a tag in the container draft
Description
INSTALL A TAG in the container's draft workspace: a Google Ads conversion tag, a GA4 event, or a third-party pixel. IT DOES NOT GO LIVE. Everything written here lands in a WORKSPACE, which is a draft, and it does not run on the website until a human opens Tag Manager and publishes the container. Staging NEVER publishes: making a tag live is a separate, explicitly confirmed call (publish_tag_manager_container), because publishing changes what executes for every visitor on the live site. Always tell the user the change is staged, and that it does nothing until it is published. TWO THINGS YOU MUST GET FROM THE CONTAINER RATHER THAN INVENT. (1) type is a Tag Manager type string and Google publishes no machine-readable list of them, so Hermoso forwards whatever you pass rather than validating against a list that would go stale and start refusing real types. Get the right one by calling list_tag_manager_tags and copying the type off a tag of the same kind that already exists, or read it in Tag Manager. (2) firingTriggerId is required and must name at least one real trigger id from list_tag_manager_tags, because a tag with no trigger is installed and never runs, which is worse than not installing it. Use create_tag_manager_trigger if the container has no suitable trigger. 0 credits. Needs Google Tag Manager connected.
Parameters
| Parameter | Type | Description |
|---|---|---|
containerPathrequired | string | the "accounts/<id>/containers/<id>" path from list_tag_manager_containers |
gtmWorkspace | string | Tag Manager workspace id or name. Defaults to the Default Workspace. |
workspace | string | older name for gtmWorkspace (MCP only) |
namerequired | string | what a human will look for in the Tag Manager UI |
typerequired | string | the Tag Manager tag type string. Copy it off a tag of the same kind already in the container (list_tag_manager_tags) rather than guessing: Google publishes no machine-readable list of these. |
firingTriggerIdrequired | string[] | REQUIRED, at least one real trigger id from list_tag_manager_tags. A tag with no trigger is installed and never runs. |
parameter | object[] | Tag Manager parameters, each { type, key, value }. type defaults to "template", which is Tag Manager's string type. |
blockingTriggerId | string[] | trigger ids that stop this tag firing when they match |
tagFiringOption | string | unlimited, oncePerEvent or oncePerLoad |
paused | boolean | true = create the tag paused, so it does not fire |
notes | string | internal note stored on the tag; not shown on the website |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_tag_manager_tag.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_tag_manager_tag","arguments":{"containerPath":"<string>","name":"<string>","type":"<string>","firingTriggerId":"<array>"}}}
CLI
hermoso call create_tag_manager_tag --json '{"containerPath":"<string>","name":"<string>","type":"<string>","firingTriggerId":"<array>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
publish_tag_manager_containerPublish the container to the live sitelist_tag_manager_tagsWhat is actually firing on the sitecreate_tag_manager_triggerCreate a trigger in the container draftupdate_tag_manager_tagChange a tag in the container draftlist_tag_manager_containersList the Tag Manager containers shared with this profile