Segment schema reference
Overview
This topic explains the different event kinds for Segment Data Export destinations. The JSON schemas for Segment are formatted differently than LaunchDarkly’s. The index
, identify
, and summary
event kinds are not available in Segment Data Export destinations, and other events are exported with different labels.
To learn more about the Segment destination, read Segment’s documentation.
There are four different event kinds exported to Segment. They are:
- Feature events: This event is emitted when a feature flag is evaluated.
- Click events: This event is emitted when an end user clicks on a CSS selector for which they have configured a metric in an experiment.
- Page view events: This event is emitted when an end user loads a page associated with an experiment metrics.
- Custom events: This event is emitted when LaunchDarkly SDK sends a
custom
event.
LaunchDarkly no longer supports alias
events for SDKs upgraded to contexts. LaunchDarkly continues to support sending and receiving alias events for older SDK versions. For a list of SDKs that still support alias
events, read Aliasing users.
Additional properties
Segment events include additional information about different LaunchDarkly properties. These properties are included in all event kinds.
These properties are:
Feature events
This table explains feature
event properties:
Click events
This table explains click
event properties:
Page view events
This table explains page view
event properties:
Custom events
Custom events contain the properties listed under Additional properties.
This table explains custom
event properties not listed in that section: