hermosodocs

create_tag_manager_tag

Install a tag in the container draft

Area: GOOGLE TAG MANAGER · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
containerPathrequiredstringthe "accounts/<id>/containers/<id>" path from list_tag_manager_containers
gtmWorkspacestringTag Manager workspace id or name. Defaults to the Default Workspace.
workspacestringolder name for gtmWorkspace (MCP only)
namerequiredstringwhat a human will look for in the Tag Manager UI
typerequiredstringthe 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.
firingTriggerIdrequiredstring[]REQUIRED, at least one real trigger id from list_tag_manager_tags. A tag with no trigger is installed and never runs.
parameterobject[]Tag Manager parameters, each { type, key, value }. type defaults to "template", which is Tag Manager's string type.
blockingTriggerIdstring[]trigger ids that stop this tag firing when they match
tagFiringOptionstringunlimited, oncePerEvent or oncePerLoad
pausedbooleantrue = create the tag paused, so it does not fire
notesstringinternal 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.

All 759 Ad campaign management tools · tools.json