Documentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
Goal
Goals are metrics to track campaign success. This tutorial creates a Click goal to count clicks on the.cta-button element.
See the goal creation guide for more information.
Requirements
access token
Create the goal
Endpoint:| Name | Type | Description |
|---|---|---|
| description | String | Goal description (for example, “Number of CTA clicks”). |
| name | String | Goal name (for example, “Clicks on CTA”). |
| siteId | String | The project’s siteId. |
| params | Object | Includes element selectors for click tracking. |