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 (Actions) Destination


Destination Info
  • Accepts Page, Alias, Group, Identify and Track calls.
  • Refer to it as LaunchDarkly, or LaunchDarkly (Actions) Destination, or LaunchDarkly (Actions) in the Integrations object
  • This integration is partner owned. Please reach out to the partner's support for any issues.

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

With LaunchDarkly, you can run experiments on any feature flag. This destination allows you to connect existing Segment events to LaunchDarkly custom metrics for use in LaunchDarkly experiments.

(success)

Success!

Good to know: This page is about the Actions-framework LaunchDarkly Segment destination. There's also a page about the non-Actions LaunchDarkly destination. Both of these destinations receives data from Segment.


Benefits of LaunchDarkly (Actions) vs LaunchDarkly Classic

benefits-of-launchdarkly-actions-vs-launchdarkly-classic page anchor

LaunchDarkly (Actions) provides the following benefits over the classic LaunchDarkly destination:

  • Improved customization. You determine the mapping between the data Segment receives from your source and the data Segment sends to LaunchDarkly. For example, you can map an arbitrary event property to the LaunchDarkly metric key.
  • Increased transparency. You can see the data that is sent to LaunchDarkly and when Segment sends it. Additionally, you can subscribe to alerts when the delivery rate to LaunchDarkly dips below a configurable threshold.

To get started with LaunchDarkly (Actions):

  1. In LaunchDarkly, navigate to Account settings(link takes you to an external page) and copy the client-side ID for the project and environment that you would like to connect to Segment.
  2. From the Segment web app, click Catalog, then click Destinations.
  3. Search for LaunchDarkly (Actions) and select it.
  4. Click Configure LaunchDarkly.
  5. Select the Source you want to connect to LaunchDarkly (Actions).
  6. Paste the LaunchDarkly client-side ID you copied in step 1 into the LaunchDarkly client-side ID field on the destination settings page.

Property nameTypeRequiredDescription
LaunchDarkly client-side IDstring
required

Find and copy the client-side ID in the LaunchDarkly account settings page.


LaunchDarkly events host namestring

Optional

Your LaunchDarkly events host name. If not specified, the default value of events.launchdarkly.com will be used. Most customers will not need to change this setting.


LaunchDarkly (Actions) has the following presets

Preset NameTriggerDefault Action
Alias UserEvent type = "identify", Event type = "alias"Alias User
Track EventEvent type = "track"Track Event

Build your own Mappings. Combine supported triggers with the following LaunchDarkly-supported actions:

(information)

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Alias User

alias-user page anchor

Alias an anonymous user with an identified user key.

Alias User is a Cloud action. The default Trigger is type = "identify" or type = "alias"

Property nameTypeRequiredDescription
User keySTRING
required

The user's unique key.


Anonymous IDSTRING
required

The user's unauthenticated identifier.


Event TimestampDATETIME

Optional

The time when the event happened. Defaults to the current time.

Track custom events for use in A/B tests and experimentation.

Track Event is a Cloud action. The default Trigger is type = "track"

Property nameTypeRequiredDescription
Context KindSTRING

Optional

The event's context kind. If not specified, the context kind will default to user. To learn more about context kinds and where you can find a list of context kinds LaunchDarkly has observed, read Context kinds(link takes you to an external page).


Context KeySTRING
required

The unique LaunchDarkly context key. In most cases the Segment userId should be used.


Additional Context KeysOBJECT

Optional

A mapping of additional context kinds to context keys. To learn more, read Contexts and segments(link takes you to an external page).


Event NameSTRING
required

The name of the event to track. This name typically corresponds to a LaunchDarkly metric with the same key.


Metric ValueNUMBER

Optional

The numeric value associated with the event. This value is used by the LaunchDarkly experimentation feature in numeric custom metrics, and will also be returned as part of the custom event for Data Export.


Event PropertiesOBJECT

Optional

Optional object containing the properties for the event being tracked. These properties assist with observational analytics for LaunchDarkly Data Export destinations. These properties are not saved to the LaunchDarkly user.


Event timestampDATETIME

Optional

The time when the event happened. Defaults to the current time.

(information)

A note about Identify calls

LaunchDarkly doesn't store user attributes for use with flag evaluations. As a result, Segment doesn't support mapping Identify calls to LaunchDarkly actions.


Creating LaunchDarkly metrics

creating-launchdarkly-metrics page anchor

In order to take full-advantage of the LaunchDarkly (Actions) Destination, you need to create metrics in LaunchDarkly that correspond to Segment track events. Read Creating metrics(link takes you to an external page) to learn how to create metrics in LaunchDarkly.


Migration from the classic LaunchDarkly destination

migration-from-the-classic-launchdarkly-destination page anchor

Be sure to disconnect the classic LaunchDarkly destination before enabling the LaunchDarkly (Actions) destination to avoid duplicate experimentation events in LaunchDarkly.