If you have many custom track events to send at once, you can use this API.
This API has the same endpoint as Track. The only difference is that it takes an events
array of objects with a max of 1000 events per request.
To avoid duplicate events, use the same idempotency_key
body parameter listed on the Track page.
curl \
-X POST \
-H "Content-Type: application/json" \
-d '{
"app_id": "12343283",
"events": [{
"identity": "[email protected]",
"timestamp": "2016-05-10T22:21:56+00:00",
"event": "Phone Call",
"properties": {
"Sales Rep": "Joe Smith",
"Duration" : "15 minutes",
"Purpose" : "Discovery Call"
}
},
{
"identity": "[email protected]",
"timestamp": "2016-05-10T22:23:56+00:00",
"event": "Phone Call",
"properties": {
"Sales Rep": "Susie Smith",
"Duration" : "30 minutes",
"Purpose" : "Discovery Call"
}
}]
}'\
https://heapanalytics.com/api/track
Please note:
fetch
,jQuery
, andXMLHttpRequest
options are not currently supported.
Requests are limited to 1000 events per minute per identity per app_id and 15,000 events per minute per app_id.