Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

LaunchDarkly Source


Source Info
  • The LaunchDarkly Source is an Event Cloud source. This means that it sends data as events, which are behaviors or occurrences tied to a user and a point in time. Data from these sources can be loaded into your Segment warehouses, and also sent to Segment streaming destinations. Learn more about cloud sources.
  • This integration is partner owned. Please reach out to the partner's support for any issues.
(warning)

This Source is supported in US data processing regions.

This Source is only supported in workspaces configured to process data in the US region. Workspaces configured with data processing regions outside of the US cannot connect to this source. For more information, see Regional Segment.

LaunchDarkly(link takes you to an external page) is a feature management platform that empowers development teams to safely deliver and control software through feature flags.

This source is maintained by LaunchDarkly. For any issues with the source, contact the LaunchDarkly Support team.


Getting started

getting-started page anchor
  1. From your Segment UI's Sources page click on Add Source.
  2. Search for "LaunchDarkly" within the Sources Catalog and confirm by clicking Connect.
  3. Give the Source a nickname and follow the set up flow to add your source. The nickname will be used to designate the source in the Segment interface, and Segment will create a related schema name. The schema name is the namespace you'll be querying against in your warehouse. The nickname can be whatever you like, but we recommend sticking to something that reflects the source itself and distinguishes amongst your environments (for example, LaunchDarkly_Prod, LaunchDarkly_Staging, LaunchDarkly_Dev).
  4. Copy the Write key from the Segment UI and log in to your LaunchDarkly account. Navigate to Integrations > Data Export Destinations.
  5. Select Add destination and select "Segment" in the dropdown menu.
  6. Choose a name for the destination and the LaunchDarkly environment for which events will be forwarded to Segment
  7. Paste the Segment key into the "Write Key" textbox.
  8. Click Save Destination.

The following table lists events that LaunchDarkly sends to Segment. These events will show up as tables in your warehouse, and as regular events in your other Destinations. LaunchDarkly will send through the userId if available.

Event nameDescription
featureA feature flag has been evaluated
clickA user clicked on a CSS selector for which they have configured a LaunchDarkly experimentation goal
PageA user has loaded a page which is associated with a LaunchDarkly experimentation goal
CustomA custom event was sent by the LaunchDarkly SDK

The following tables outline the properties included in the events listed above.

Property nameDescription
eventevent type
Common PropertiesProperties common to all events. types
environmentThe LaunchDarkly environment ID corresponding to event
projectThe LaunchDarkly project ID corresponding to the event
keyThe flag key corresponding to the event. In the case of experimentation events, this will be the goal key for the experiment.
Feature Request Event Properties
valueThe value the flag evaluated to
flagVersionThe version of the flag when it was evaluated
reasonKindThe evaluation reason(link takes you to an external page) for the flag.
prereqOfSet to another flag's key if this flag evaluation was only performed in order to determine whether the prerequisite values were met for the indicated flag. See flag prerequisites(link takes you to an external page).
defaultIndicates whether the flag value was the result of the default variation being selected
variationThe variation of the flag requested. Flag variation values are stored in an array. This value corresponds to the index of the variation the array. Boolean flags show as 0 or 1 for true and false, and other flag types are numbered starting with 0 for their different variations.
Page View Event Properties
urlThe URL the user was on when the flag was evaluated
Click Event Properties
urlThe URL the user was on when the flag was evaluated
selectorContains the CSS selector corresponding to the click event
Custom Event PropertiesCustom Events have no additional properties besides the common properties.

Now that your source is set up, you can connect it to destinations.

Log in to your downstream tools and check to see that your events are populating and they contains all the properties you expect. If all your events and properties are not showing up, refer to the relevant destination docs for troubleshooting.

If you experience any issues with how the events arrive in Segment, contact the LaunchDarkly team.