Create Goal
rybbit_create_goalCreate conversion goals in Rybbit to track page-path visits or custom events, with optional property filters for advanced matching.
Instructions
Create a new conversion goal in Rybbit. A goal tracks conversions when users visit a specific page path or trigger a custom event. For path goals: set goalType='path' and config.pathPattern (e.g. '/order-confirmation'). For event goals: set goalType='event' and config.eventName (e.g. 'purchase'). Use rybbit_list_goals to verify creation afterward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for the goal (e.g. 'Purchase Completed') | |
| config | Yes | ||
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| goalType | Yes | 'path' to match URL pathname, 'event' to match custom event name |