When to Use
Use the HTTP Track API when:- Recording events from server-side code (e.g., payment completed, subscription changed)
- Tracking actions that don’t happen in a browser
- Syncing events from external systems (CRM, billing, support)
userpilot.track() instead when:
- User performs action in your web application
- You need the event immediately available for content triggering
Prerequisites
- User must already exist in Userpilot (identified via SDK or API)
- Userpilot API Key from Settings > Environment
Endpoint
The endpoint URL uses the
analytex environment. For EU data residency, use
analytex-eu instead. See Environment
Settings for your specific endpoint.Headers
Request Body
Example
Example cURL Command
Response
A successful event tracking returns HTTP status code 202 Accepted.Common Issues
Related
- Identify User API - Create users before tracking events
- JavaScript SDK track() - Browser-based event tracking
- Events Dashboard - View tracked events
- Funnel Reports - Analyze event sequences