You may wish to track certain events in conversations, such as:
The JSON that you can send to track an event is:
For each event type, you can pass additional properties:
customEvent
revenueEvent
pageLaunchEvent
shareEvent
referralEvent
Post to the endpoint
https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>
Make sure to set the ‘Content-Type’ header to ‘application/json’
{
"name": "trackMeEvent",
"type": "customEvent",
"userId": "967295313370594",
"extraInfo": {
"start": 1500504070512,
"difference": 374,
"end": 1500504070886
}
}
curl -X POST -H "Content-Type: application/json"
-d '{"name":"trackMeEvent","type":"customEvent","userId":"967295313370594","extraInfo":{"start":1500504070512,"difference":374,"end":1500504070886}}'
'https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>'
Post to the endpoint
https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>
Make sure to set the ‘Content-Type’ header to ‘application/json’
{
"name": "boughtSandwich",
"type": "revenueEvent",
"userId": "967295313370594",
"amount": 17.45,
"metadata": {
"productName": "Ham Sandwich",
"sku": "abc123123"
}
}
curl -X POST -H "Content-Type: application/json"
-d '{"name":"boughtSandwich","type":"revenueEvent","userId":"967295313370594","amount":17.45,"metadata":{"productName":"Ham Sandwich","sku":"abc123123"}}'
'https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>'
Post to the endpoint
https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>
Make sure to set the ‘Content-Type’ header to ‘application/json’
{
"name": "Launched Detail Page",
"type": "pageLaunchEvent",
"userId": "967295313370594",
"extraInfo": {
"url": "https://www.dashbot.io/"
}
}
curl -X POST -H "Content-Type: application/json"
-d '{"name":"Launched Detail Page","type":"pageLaunchEvent","userId":"967295313370594","extraInfo":{"url":"https://www.dashbot.io/"}}'
'https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>'
Post to the endpoint
https://tracker.dashbot.io/track?platform=facebook&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>
Make sure to set the ‘Content-Type’ header to ‘application/json’
{
"name": "sharedLink",
"type": "shareEvent",
"userId": "967295313370594",
"sharedMessage": {
"text": "come check out this bot"
}
}
curl -X POST -H "Content-Type: application/json"
-d '{"name":"sharedLink","type":"shareEvent","userId":"967295313370594","sharedMessage":{"text":"come check out this bot"}}'
'https://tracker.dashbot.io/track?platform=twitter&v=11.1.0-rest&type=event&apiKey=<strong>API_KEY_HERE</strong>'