Endpoint
Authentication
Requires API key authentication.Request body
| Field | Type | Required | Description |
|---|---|---|---|
event | string | Yes | The goal event name |
value | number | No | Optional numeric value |
visitorId | string | No | Visitor ID (if available) |
sessionId | string | No | Session ID (if available) |
path | string | No | Page path (defaults to ”/“) |
Request example
Response
Success response (200)
Error responses
Missing event (400)
Unauthorized (401)
Use cases
- Server-side tracking - Track events from your backend
- Webhook handlers - Track goals from webhook events
- Background jobs - Track goals from scheduled tasks
- API integrations - Track goals from third-party APIs
Examples
Track purchase
Track form submission
Next steps
POST Payment
Learn how to record payments via API