Track a customer event
Send an event associated with a person, referenced by the identifier in the path. There are three defined event type values: page, screen and event. Page and screen events represent website page views and mobile app screen views respectively; the name for these event types is intended to be the page or screen a person visited or viewed. Any other event, is given the event type.
We automatically trim leading and trailing spaces from event names.
Reserved Properties
There are a few important values which, if sent with the events that trigger automations, will override your automation settings:
- from_address
- recipient
- reply_to
When using the Javascript snippet to track events, you must call the Behavioral Tracking API call after identifying the customer or the event will not associate with the customer’s profile.
Request body
Example request
{
"name": "purchase",
"data": {
"price": 23.45,
"product": "socks"
}
}Response
A successful request returns an empty object response.
Changes
No recorded changes to this endpoint across all 1 revision of this API.