Server-Side
Payload Reference
All fields that can be sent in the event payload to the collect endpoint.
All fields that can be sent in the event payload to /collect/{api_key}.
| Field | Type | Required | Description |
|---|---|---|---|
| event | string | Required | Event name (e.g. purchase) |
| value | float | Optional | Monetary value of the event |
| currency | string | Optional | ISO 4217 (e.g. EUR) |
| order_id | string | Optional | For deduplication of purchase events |
| content_id | string | Optional | Product SKU or content identifier |
| content_name | string | Optional | Product name or page label |
| contents | array | Optional | Cart items (see E-Commerce Events) |
| user.email | string | Optional | Hashed with SHA-256 |
| user.phone | string | Optional | E.164 format, hashed |
| user.first_name | string | Optional | First name, hashed |
| client_id | string | Optional | Browser client ID for event matching |
| event_id | string | Optional | Custom event ID for deduplication |