Goals
See how often each event happens and mark the events that count as conversions.
Authentication
Requires a root client or a key with the goals:write permission. A key for one project can only manage that project's goals.
Base URL
https://api.actuallytracking.com/manage/projects/{projectId}/goalsEndpoints
| Method | Path | Description |
|---|---|---|
GET | /manage/projects/{projectId}/goals | The project's events with completions and conversion rate |
PATCH | /manage/projects/{projectId}/goals | Set up an event: conversion, color, icon |
DELETE | /manage/projects/{projectId}/goals?name={event} | Clear an event's settings |
Goals are your custom events, such as signup or checkout_started. Pageviews and session bookkeeping are left out.
Listing goals
curl "https://api.actuallytracking.com/manage/projects/YOUR_PROJECT_ID/goals?startDate=2026-10-01&endDate=2026-10-31" \
-H "actuallytracking-client-id: YOUR_CLIENT_ID" \
-H "actuallytracking-client-secret: YOUR_CLIENT_SECRET"Without dates it covers the last 30 days. The answer has the period's visitors and, for each event:
| Field | Description |
|---|---|
name | The event name |
total | How many times it happened |
visitors | How many visitors did it |
conversionRate | visitors as a percentage of all visitors in the period |
conversion | Whether it counts as a conversion in the dashboard |
color, icon | How the dashboard shows it, or null |
An event set up as a conversion is listed even when it did not happen in the period.
Marking a conversion
curl -X PATCH https://api.actuallytracking.com/manage/projects/YOUR_PROJECT_ID/goals \
-H "actuallytracking-client-id: YOUR_CLIENT_ID" \
-H "actuallytracking-client-secret: YOUR_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{ "name": "signup", "conversion": true, "color": "#22c55e" }'color is a hex color. icon is the name of an icon from the dashboard's event settings.
For full request and response schemas, see the API Reference.