Analytics
Send Event Data
This route allows you to send event data to the system.
PUT
/
api
/
analytics
/
events
Authorizations
Authorization
string
headerrequiredHeaders
TR-Dataset
string
requiredThe dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
Body
application/json
event_name
string
requiredThe name of the event
event_type
enum<string>
requiredAvailable options:
view
items
string[]
requiredThe items that were viewed
metadata
any | null
Any other metadata associated with the event
request_id
string | null
The request id of the event to associate it with a request
user_id
string | null
The user id of the user who viewed the items