create_goal
Define conversion goals for your site by specifying a URL path prefix or a custom event name. Track conversions and rates directly on your dashboard.
Instructions
Create a conversion goal for a site. type='path' matches sessions that visit a path-prefix; type='event' matches sessions that fire a named custom event. Use this when the user says 'track signups as a goal', 'add a goal for /thank-you', etc. Goals show up on the site dashboard with conversion count + rate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | Internal site UUID for the target site. Get one from list_sites. | |
| name | Yes | Human-readable name for the goal (e.g. 'Signup', 'Purchase'). | |
| type | Yes | 'path' matches sessions that visit a URL path prefix; 'event' matches sessions that fire a named custom event. | |
| target | Yes | When type='path', the URL path prefix (e.g. '/thank-you'). When type='event', the event name (e.g. 'signup'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||