Create a goal visible in the Umami UI
umami_create_goalCreate a saved goal in Umami so it appears in the Behavior > Goals dashboard, enabling persistent conversion tracking for page paths or custom events.
Instructions
Create a persisted Goal that appears under Behavior > Goals in the Umami web UI, not just a computed result. Unlike umami_get_goal (which computes a conversion rate on demand and shows nothing in the UI), this saves the goal definition so it shows up for anyone browsing the dashboard.
Args:
website (string, optional): Website ID, name, or domain.
name (string, required): Display name for the goal.
match_type ('path' | 'event', required): Whether the goal is reaching a page or firing a custom event.
value (string, required): The page path (e.g. '/thank-you') or event name (e.g. 'signup') to match.
Returns: { "id": string, "name": string, "type": "goal", "parameters": object }
Error handling:
match_type='event' accepts any event name, even one that has never fired yet; the goal will just show 0 conversions until it does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the goal. | |
| value | Yes | Page path (e.g. '/thank-you') or event name (e.g. 'signup'). | |
| website | No | Website ID (UUID), name, or domain. Optional if UMAMI_DEFAULT_WEBSITE is set. Use umami_list_websites to discover values. | |
| match_type | Yes | Whether the goal matches a page path or a custom event. |