Actually Tracking

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}/goals

Endpoints

MethodPathDescription
GET/manage/projects/{projectId}/goalsThe project's events with completions and conversion rate
PATCH/manage/projects/{projectId}/goalsSet 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:

FieldDescription
nameThe event name
totalHow many times it happened
visitorsHow many visitors did it
conversionRatevisitors as a percentage of all visitors in the period
conversionWhether it counts as a conversion in the dashboard
color, iconHow 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.

On this page