GTM: create trigger (staged, never published)
gtm_create_triggerCreate a trigger STAGED in the managed AdCopilot workspace (never published).
For a CUSTOM_EVENT trigger (type="customEvent"), give the dataLayer event it
fires on via `event_name` (convenience — builds the required customEventFilter
matching {{_event}} to that name) OR pass `custom_event_filter` as the raw GTM
condition list. `filter` / `auto_event_filter` carry extra firing conditions
for other trigger types; `parameter` passes trigger-type parameters through.
The first write to a container adds a draft workspace named AdCopilot
if it has none. AdCopilot has no Tag Manager publish permission, so
nothing reaches the website until a person publishes that workspace
in Tag Manager.Tools revision: d80f65c0.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"container": "<container>",
"name": "<name>",
"type": "<type>"
},
"name": "gtm_create_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| filter | No | ||
| container | Yes | ||
| parameter | No | ||
| event_name | No | ||
| auto_event_filter | No | ||
| custom_event_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |