Create Goal
rybbit_create_goalCreate a conversion goal for your site by setting a URL path pattern for path-based goals or defining an event name and optional property filters for event-based goals.
Instructions
Create a new conversion goal for a site. Goal can be path-based (URL match) or event-based (custom event triggered).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| name | No | Optional display name for the goal | |
| goalType | Yes | 'path' = URL pattern, 'event' = custom event | |
| config | Yes | Goal configuration. Use pathPattern for path goals or eventName for event goals. |