Introduction
How to send events?
The analytics API is built using REST. To submit an event you send a POST request to https://api.8select.io/analytics/v3/events
:
Every event has to contain a type
and a type-specific payload, as well as an optional context
array.
context
The context is used to provide additional contextual information about the origin of a given event. You can find out more in the context section.
context[type = "user"].user.id
The id
sent in the user context within the context array must be consistent for all events concerning a single user. It should be anonymized, i.e. a generated id without any connection to personal data. You can read the section about user identification to learn more.
type
There are currently three types of events (view, interact, order), each with a specific payload as defined in the respective sections under events. The property containing the type specific payload is always named after the type itself.
Last updated