> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeotap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LaunchDarkly

## Overview

LaunchDarkly 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. Integrated with Zeotap CDP, this Destination allows you to send the segments created in Zeotap CDP to be used in LaunchDarkly feature flags.

A feature flag, also known as a feature toggle or feature switch, is a technique used in software development to enable or disable certain features or functionalities of an application at runtime. It allows developers to control the availability of specific features to different users or groups of users without deploying new code.

## Supported Identifiers/Attributes

This integration supports Custom IDs, which can be any ID activated within LaunchDarkly. These IDs may include User IDs, CRM IDs, or any other IDs.

## Available Actions and Supported Features

The following table lists the available action types for the integration and the supported features for each action type:

| Action Name                       | [ID EXTENSION](/articles/segment-customer/extend-your-audience#id-extension) | [DELETE](https://docs.zeotap.com/articles/#!integrate-customer/delta-upload-and-delete-functions) | [DELTA UPLOAD](https://docs.zeotap.com/articles/#!integrate-customer/delta-upload-and-delete-functions) |
| :-------------------------------- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------ |
| Send Identifiers to Launch Darkly | -                                                                            | -                                                                                                 | -                                                                                                       |

## Components of LaunchDarkly

Ensure that you have the details about the below components of the LauchDarkly account before creating a Destination.

<CardGroup>
  <Card title="Access Token" icon="key" horizontal href="#access-token" />

  <Card title="Client-side ID" icon="id-card" horizontal href="#client-side-id" />
</CardGroup>

### Access Token

An Access token in LaunchDarkly is a unique identifier that allows you to authenticate and control access to your LaunchDarkly feature flags and experiments. Perform the following steps to obtain the API Access token:

<Steps>
  <Step>
    Log into the LaunchDarkly console and navigate to **Account settings** **>** **Authorization**.
  </Step>

  <Step>
    Under **Access tokens**, click **Create token**.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/Dark_access_token_1.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=e03f830172d42ddd2e51980c69260db1" width="3022" height="1728" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/Dark_access_token_1.png" />
    </Frame>
  </Step>

  <Step>
    In the **Create access token** window that appears, provide the following details:

    a. Enter a **Name** for your access token.

    b. Choose the **Role** as **Writer** for your access token from the drop-down menu.

    c. Choose the **API version** for your token from the drop-down menu. By default, the API requests you send using this token will use this API version. For more information about how the API versioning works in LaunchDarkly, refer [here](https://apidocs.launchdarkly.com/#section/Overview/Versioning).

    d. If you are an Enterprise customer, you can click **This is a service token** checkbox if you wish to create a service token.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_access_token_2.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=41a2fd425960c4d57a591ebc34ff68f3" width="1506" height="1256" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_access_token_2.png" />
    </Frame>
  </Step>

  <Step>
    Review the entered details and click **Save Token**. The newly created Access token gets listed on the **Authorization** page as shown in the image below. Ensure to copy and save the token securely as it is hidden once you leave the page.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_launchly_access_token_3_(1).png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=e643cfaed57d2abe61630b51e6049653" width="2436" height="996" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_launchly_access_token_3_(1).png" />
    </Frame>
  </Step>
</Steps>

### Client-side ID

This is the Client-side ID of your LaunchDarkly account. Perform the following steps to obtain the Client-side ID:

<Steps>
  <Step>
    Log into LaunchDarkly account and navigate to **Account Settings**.
  </Step>

  <Step>
    Click **Projects** tab and select the project you want to link to Zeotap CDP.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/launch_darkly_client_side_id_1.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=77bbc95dca3c2a47bd49875b5a9cfee5" width="3010" height="1348" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/launch_darkly_client_side_id_1.png" />
    </Frame>
  </Step>

  <Step>
    In the new screen that appears, under the **Environments** tab, copy the **Client-side ID** next to the environment that you wish to link with Zeotap CDP. You can use this information while creating a Destination in Zeotap CDP.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/darklaunchly_client_id_2_(1).png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=06467d555f18bf53da89c72ed2e74886" width="3020" height="1416" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/darklaunchly_client_id_2_(1).png" />
    </Frame>
  </Step>
</Steps>

## Create a Destination for LaunchDarkly

Perform the following steps to create a Destination for LauchDarkly:

<Steps>
  <Step>
    Log into the Zeotap CDP App and go to the **DESTINATIONS** application.
  </Step>

  <Step>
    Click **+ Create Destination**.

    <Frame>
      <img src="https://mintcdn.com/zeotap/sBMx_EDYCwiX_b1v/articles/integrate-customer/Storage/integrate-customer/rtb-house/RTB_H1.png?fit=max&auto=format&n=sBMx_EDYCwiX_b1v&q=85&s=989bf48b86088d10e9d6c3b3b8bc0448" width="2848" height="1078" data-path="articles/integrate-customer/Storage/integrate-customer/rtb-house/RTB_H1.png" />
    </Frame>
  </Step>

  <Step>
    Under the **All Destinations** section, search for **LauchDarkly**.

    <Frame>
      <img src="https://mintcdn.com/zeotap/sBMx_EDYCwiX_b1v/articles/integrate-customer/Storage/integrate-customer/rtb-house/RTB_H2.png?fit=max&auto=format&n=sBMx_EDYCwiX_b1v&q=85&s=5522da00bb5325e81e971a79d5f85794" width="2848" height="1078" data-path="articles/integrate-customer/Storage/integrate-customer/rtb-house/RTB_H2.png" />
    </Frame>
  </Step>

  <Step>
    Click **LauchDarkly**. A screen appears displaying details about the particular destination towards the left. On the right-hand side of the screen find a list of fields that are required for the integration to be established. Enter the required details as mentioned in the following steps:

    a. Enter a name for the Destination.

    b. Enter the **Access Token** obtained from your LauchDarkly account. For more information on how to obtain this information, refer to [Components of LaunchDarkly](/articles/integrate-customer/launchdarkly#h2_1376381197) section.

    c. Enter the **Client Side ID** of your LaunchDarkly account. For more information on how to obtain this information, refer to [Components of LaunchDarkly](/articles/integrate-customer/launchdarkly#h2_1376381197) section.

    d. Review all the values entered above and then click **Next** to proceed.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/Launchdarkly_11.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=9299a76cfde8d3487326c218be438f09" width="2802" height="1282" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/Launchdarkly_11.png" />
    </Frame>
  </Step>

  <Step>
    In the new screen that appears, choose the appropriate Action and Mapping as explained below.

    a. Choose the desired [action](/articles/integrate-customer/destinations#actionsanchor) under **Choose your Action** and then choose the corresponding identifiers under **Map the Fields**. By default, the [Output Identifiers](https://docs.zeotap.com/articles/segment-customer/choose-the-output-identifiers) that are accepted by the platform such as, MAIDs, Cookies, email Ids and more are displayed. However, you can edit, add or remove an identifier from the list. To do so, refer [here](/articles/integrate-customer/destinations#mappingsanchor).
  </Step>

  <Step>
    Click **Create Destination**. The created Destination gets listed in the **Audiences** application, which can be linked to an Audience.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/Lauchdarkly_12.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=c67aae6775fb81c8bb8d0320e82d96db" width="2802" height="1282" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/Lauchdarkly_12.png" />
    </Frame>
  </Step>
</Steps>

## Link an Audience to the LaunchDarkly Destination

For information about how to link an audience to the created Destination in **Audiences** module, refer [here](/articles/integrate-customer/link-an-audience-to-the-destination).

<Note>
  **Note:**

  The terms Audiences and Segments are used interchangeably to refer to customer cohorts belonging to a specific category. For example, an Audience or a segment could be a specific group of customers who are over 18 years of age and who have performed an `addToCart` event within the last 30 days.
</Note>

## View Segments on LaunchDarkly

Perform the following steps to view the Audiences that are pushed from Zeotap CDP to LaunchDarkly:

<Steps>
  <Step>
    Log into LaunchDarkly and navigate to **Feature flags**.
  </Step>

  <Step>
    In the **Feature flags** screen that appears, choose the desired feature flag from the list.

    <Frame>
      <img src="https://mintcdn.com/zeotap/sBMx_EDYCwiX_b1v/articles/integrate-customer/Storage/integrate-customer/rtb-house/view_seg_in_LD_1.png?fit=max&auto=format&n=sBMx_EDYCwiX_b1v&q=85&s=a11753649450aa13fb82b1e7613d39ae" width="3020" height="1692" data-path="articles/integrate-customer/Storage/integrate-customer/rtb-house/view_seg_in_LD_1.png" />
    </Frame>
  </Step>

  <Step>
    In the new screen that appears, click the **Add rule** drop-down button and then choose **Target Segments** from the list. This creates a new **Rule** section.

    <Frame>
      <img src="https://mintcdn.com/zeotap/sBMx_EDYCwiX_b1v/articles/integrate-customer/Storage/integrate-customer/rtb-house/view_seg_in_LD_2.png?fit=max&auto=format&n=sBMx_EDYCwiX_b1v&q=85&s=ecb13a11fe0125febef268bc2a125926" width="3016" height="1710" data-path="articles/integrate-customer/Storage/integrate-customer/rtb-house/view_seg_in_LD_2.png" />
    </Frame>
  </Step>

  <Step>
    Under the new **Rule** section that is created, expand the **Select Segments** drop-down to view the Audiences that are pushed from Zeotap CDP.

    <Note>
      **Note:**

      To view segments under the **Select Segments** drop-down, ensure that the LaunchDarkly Destination is created and is linked to at least one Audiences in Zeotap CDP.
    </Note>
  </Step>

  <Step>
    Choose the desired audience from the drop-down menu for which you want to use the feature flag.

    <Frame>
      <img src="https://mintcdn.com/zeotap/sBMx_EDYCwiX_b1v/articles/integrate-customer/Storage/integrate-customer/rtb-house/view_seg_in_LD_3.png?fit=max&auto=format&n=sBMx_EDYCwiX_b1v&q=85&s=bc9f2c9980d87bef0280db26f27b7c5f" width="3020" height="1718" data-path="articles/integrate-customer/Storage/integrate-customer/rtb-house/view_seg_in_LD_3.png" />
    </Frame>
  </Step>
</Steps>
