Track event
track_eventRecord a pageview: an agent's own visit, or a request your server forwards. Pass user_agent to classify a forwarded request; otherwise it counts as an AI agent visit under agent (default: the API key's name).
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": {
"site_key": "<site_key>",
"path": "<path>"
},
"name": "track_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Page path, e.g. /about. | |
| agent | No | Agent name for attribution. | |
| referrer | No | Referring URL (only the host is kept). | |
| site_key | Yes | The site's tracking ID (site_key), from list_sites. | |
| user_agent | No | User agent of a forwarded request (classified, never stored). | |
| utm_medium | No | ||
| utm_source | No | ||
| utm_campaign | No |