"Best analytics tool I've used in 14 years"

Goals API

Use these endpoints when building an agent or UI that needs to choose from existing goals before setting a KPI, creating an alert, creating a funnel, or customizing how a goal appears in charts.

Tracked goals are goals already seen in your analytics data, ordered by frequency. Goal customizations are display-only metadata: they change dashboard labels, colors, and internal descriptions, but they do not change the raw goal name your client or API sends.

Base path: https://datafa.st/api/v1/admin
EndpointMethodPathPermissionPurpose
List tracked goalsGET/websites/{websiteId}/goalssettings:readList tracked goals ordered by frequency. Includes display customizations when saved
List goal customizationsGET/websites/{websiteId}/goals/customizationsgoals:readList saved custom display names, colors, and descriptions
Update goal customizationPATCH/websites/{websiteId}/goals/customizationsgoals:writeSet display name, color, or description for one goal
Delete goal customizationDELETE/websites/{websiteId}/goals/customizations?goalName=...goals:writeReset one goal's display metadata
curl "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/goals" \
  -H "Authorization: Bearer dft_xxx"

Customize a goal

curl -X PATCH "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/goals/customizations" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "goalName": "signup_started",
    "displayName": "Signup started",
    "color": "#8dcdff",
    "description": "Visitor opened the signup flow"
  }'
goalName must stay the raw tracked goal name. Keep sending that same value from your JavaScript tracker, SDK, or API.
To send goal events and query goal analytics, use Goals. Related CLI docs: goals.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown