Expand description
Representations of the messages which may be sent to Segment’s tracking API.
All Segment messages support a few common fields:
-
Details related to user identification are captured by this library through the
User
enum. -
Some user traits and event properties are specified through the Segment spec – these are standardized members which, if followed, will be converted to the native equivalent of each tool.
- Standardized event names and properties are specified in Segment’s semantic events docs.
- Standardized user traits are specified in Segment’s
identify
traits docs. - Standardized group traits are specified in Segment’s
group
traits docs.
-
All Segment messages support a
context
field containing additional contextual details. This field is exposed in this library ascontext
. The data incontext
is standardized, and is documented in Segment’s context docs. -
All Segment messages support an
integrations
field that enables simple routing at the event collection layer. See Segment’sintegrations
docs for how to use this field.
Structs§
- An alias event.
- A batch of events.
- A group event.
- An identify event.
- A page event.
- A screen event.
- A track event.
Enums§
- An enum containing all messages which may be placed inside a batch.
- An enum containing all values which may be sent to Segment’s tracking API.
- User ID information.