This topic explains how to configure your existing Twilio Segment account to send events to LaunchDarkly metrics.
Sending Twilio Segment events to LaunchDarkly lets you use Twilio Segment events as LaunchDarkly metric events.
Twilio Segment can only send events to custom conversion binary, custom conversion count, and custom numeric metrics. You cannot use Segment events with clicked or tapped or page viewed metrics.
After you connect LaunchDarkly and Twilio Segment, you will use the existing Twilio Segment Event Name as the LaunchDarkly metric event key when you create a custom metric.
Here is an image of a LaunchDarkly custom conversion binary metric with the event key called out:

Events are specific to one LaunchDarkly environment. To learn more, read Event keys.
To set up the integration, you must have access to your Twilio Segment and LaunchDarkly accounts. You will need them both to connect them to each other.
Copy your LaunchDarkly client-side ID by following the instructions at View or copy keys and credentials.
You will use this client-side ID in the next section.
To connect Twilio Segment to LaunchDarkly:


To use Twilio Segments events in LaunchDarkly metrics, the Twilio Segment Event Name must be identical to the LaunchDarkly metric event key. To learn how to set the event key when creating a LaunchDarkly metric, read Creating and managing metrics.
To learn more about track events, read Twilio Segment’s documentation.
After you map Twilio Segment events to LaunchDarkly metric events, events from the source you choose appear as custom metric events in LaunchDarkly.
LaunchDarkly correlates Twilio Segment metric events with LaunchDarkly context keys using the Twilio Segment user ID, if it is present. The Twilio Segment user ID must match a LaunchDarkly context key. If the Twilio Segment event does not contain a Twilio Segment user ID, then LaunchDarkly uses the Twilio Segment anonymous ID.
If you are using Twilio Segment events in a LaunchDarkly experiment:
If you are experiencing trouble with conversion registration, read the help center article Troubleshooting experimentation metrics from Segment (Twilio) not registering conversions.