Skip to main content
POST
https://api.usegately.com
/
api
/
v1
/
analytics
/
track
curl -X POST "https://api.usegately.com/api/v1/analytics/track" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event": "button_click",
    "properties": {
      "button_id": "signup-cta",
      "page": "/pricing"
    },
    "user_id": "user_123"
  }'
{
  "success": true
}
Track custom events for analytics and user behavior analysis.

Request Body

event
string
required
Name of the event to track
properties
object
Additional properties for the event
user_id
string
ID of the user performing the action
session_id
string
Session identifier for grouping events

Response

success
boolean
Whether the event was tracked successfully
curl -X POST "https://api.usegately.com/api/v1/analytics/track" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event": "button_click",
    "properties": {
      "button_id": "signup-cta",
      "page": "/pricing"
    },
    "user_id": "user_123"
  }'
{
  "success": true
}