Tracking Events (API)

You can use this REST API to send events from back-end.

Endpoint:

https://track.flashyapp.com/events/track

We suggest to use our JS since we track more information about the visitor.

UpdateCart

JSON
JSON
{
"key": "__API_KEY__",
"event": "UpdateCart",
"body": {
"account_id": {{ACCOUNT_ID}},
"email": "customer@email.com",
"content_ids": ["product_id"],
"value": 100,
"currency": "USD"
}
}

Purchase

JSON
JSON
{
"key": "__API_KEY__",
"event": "Purchase",
"body": {
"account_id": {{ACCOUNT_ID}},
"order_id": "123456ASD",
"email": "customer@email.com",
"content_ids": ["product_ids", "products_1"],
"value": 100,
"currency": "USD"
}
}

Custom Event

JSON
JSON
{
"key": "__API_KEY__",
"event": "CustomEvent",
"body": {
"account_id": {{ACCOUNT_ID}},
"event_name": "SomeAction"
}
}