cURL
single_event
curl --request POST \ --url https://events.statsigapi.net/v1/log_event \ --header 'Content-Type: application/json' \ --header 'statsig-api-key: <api-key>' \ --data '{ "events": [ { "eventName": "add_to_cart", "value": 29.99, "time": 1616826986211, "user": { "userID": "user-123" }, "metadata": { "product_id": "prod_456", "category": "electronics" } } ]}'
{ "success": true }
Logs one or more custom events for analytics and metric calculation. Events are used to measure experiment outcomes and user behavior.
1
Show child attributes
Was this page helpful?