---
title: "Migrating from LaunchDarkly"
description: "Move your feature flags and experiments from LaunchDarkly to ConfigDirector. How projects, environments, flags, contexts, segments, and rollouts map, how to recreate the flags, how to switch the SDKs over without a risky release, and how to move experiments with their metrics and track calls."
canonical_url: "https://docs.configdirector.com/migration-guides/launchdarkly"
---
# Migrating from LaunchDarkly

> Move your feature flags and experiments from LaunchDarkly to ConfigDirector. How projects, environments, flags, contexts, segments, and rollouts map, how to recreate the flags, how to switch the SDKs over without a risky release, and how to move experiments with their metrics and track calls.

This guide is for teams that run feature flags and experiments on LaunchDarkly and want to move them to ConfigDirector. It maps the LaunchDarkly concepts onto ConfigDirector's, walks through recreating the flags, and shows how to switch each SDK over so that both services run side by side until you remove the LaunchDarkly one. [Move your experiments](#move-your-experiments) then maps LaunchDarkly's experiments, metrics, and results page, and shows the `track` calls that replace LaunchDarkly's.

If you are new to ConfigDirector, read [Core Concepts](https://docs.configdirector.com/getting-started/core-concepts) first. It takes a few minutes and makes the mapping below easier to follow.

## Before you start

1. **Pick one LaunchDarkly project to move first.** A project with a handful of flags and one or two services is a good rehearsal. Everything below is done per project.
2. **Make a list of the flags, with their variations and targeting.** LaunchDarkly has no flag export, but its REST API lists every flag in a project with its variations and a summary of the targeting in each environment: `GET /api/v2/flags/{projectKey}`, with `?env=production&summary=0` for the full rules of that environment, and `GET /api/v2/flag-statuses/{projectKey}/{environmentKey}` for each flag's status. See the [LaunchDarkly API documentation](https://launchdarkly.com/docs/api/feature-flags/get-feature-flags). For a small project, the flag list in the LaunchDarkly dashboard is enough.
3. **Decide which flags not to move.** A migration is the best moment to clean up. A flag whose status is *launched* or *inactive* in every environment serves one value and has nothing left to decide. Hardcode that value in the code instead of recreating the flag. Only *active* flags, and the permanent ones you still rely on, need to move.
4. **Create your ConfigDirector organization and project.** [Sign up](https://app.configdirector.com/), create a project, and add an environment for each LaunchDarkly environment you use. `Test` and `Production` are created for you. Mark the environments that serve real traffic as live.

## How the concepts map

### Projects, environments, and flags

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly
    </th>
    
    <th>
      ConfigDirector
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Project
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/getting-started/core-concepts#projects">
        Project
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Environment
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/getting-started/core-concepts#environments">
        Environment
      </a>
      
      . A critical environment in LaunchDarkly is a <strong>
        live environment
      </strong>
      
       in ConfigDirector.
    </td>
  </tr>
  
  <tr>
    <td>
      Feature flag
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/getting-started/configs">
        Config
      </a>
      
      , with a <strong>
        role
      </strong>
      
      : <code>
        Feature flag
      </code>
      
       for a temporary boolean, <code>
        Kill switch
      </code>
      
       for a permanent boolean, <code>
        Experiment
      </code>
      
       for variations you compare, and <code>
        Config
      </code>
      
       for everything else.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag type: boolean, string, number, JSON
    </td>
    
    <td>
      Config <strong>
        type
      </strong>
      
      : <code>
        Boolean
      </code>
      
      , <code>
        String
      </code>
      
      , <code>
        Integer
      </code>
      
       or <code>
        Float
      </code>
      
      , <code>
        JSON
      </code>
      
      . ConfigDirector also has <code>
        Enum
      </code>
      
      , <code>
        URL
      </code>
      
      , and <code>
        Timespan
      </code>
      
      , which validate the value as that type. A string flag with a fixed set of variations is usually an <code>
        Enum
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Variations
    </td>
    
    <td>
      The values a config serves. Experiments define them as named <strong>
        variations
      </strong>
      
      ; other roles enter the value in each targeting rule.
    </td>
  </tr>
  
  <tr>
    <td>
      Temporary and permanent flags
    </td>
    
    <td>
      The <strong>
        role
      </strong>
      
      : a temporary boolean flag is a <code>
        Feature flag
      </code>
      
       and a permanent one a <code>
        Kill switch
      </code>
      
      , since the role decides the <strong>
        lifetime
      </strong>
      
       for every role but <code>
        Config
      </code>
      
      . Temporary configs are tracked through the <a href="https://docs.configdirector.com/monitoring/lifecycle">
        config lifecycle
      </a>
      
      , which tells you when they have settled and can be removed.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag key
    </td>
    
    <td>
      Config <strong>
        key
      </strong>
      
      . LaunchDarkly keys are valid ConfigDirector keys, so keep them: the code change is then only the SDK call. Unlike LaunchDarkly, a key can be <a href="https://docs.configdirector.com/getting-started/configs#key">
        renamed safely
      </a>
      
       later, even in production.
    </td>
  </tr>
  
  <tr>
    <td>
      Client-side SDK availability, mobile key availability
    </td>
    
    <td>
      <strong>
        SDK availability
      </strong>
      
      : client SDKs, server SDKs, or both. Client and mobile applications both use the client SDK key.
    </td>
  </tr>
  
  <tr>
    <td>
      Tags
    </td>
    
    <td>
      Tags
    </td>
  </tr>
  
  <tr>
    <td>
      JSON Schema on a flag's variations
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/getting-started/json-schema-validation">
        JSON Schema validation
      </a>
      
       on a <code>
        JSON
      </code>
      
       config, on both pricing options. Changing the schema re-validates every value already set in every environment.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag maintainer, custom properties, flag links
    </td>
    
    <td>
      No equivalent. Put the owner in the description, or in a tag.
    </td>
  </tr>
  
  <tr>
    <td>
      Archived flag
    </td>
    
    <td>
      Archived config. It can be restored for 30 days, and then it is purged.
    </td>
  </tr>
</tbody>
</table>

### Targeting

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly
    </th>
    
    <th>
      ConfigDirector
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Default rule (fallthrough)
    </td>
    
    <td>
      The <a href="https://docs.configdirector.com/getting-started/core-concepts#targeting-rules">
        default targeting rule
      </a>
      
      , the last rule in every environment. Its value is served when no other rule matches.
    </td>
  </tr>
  
  <tr>
    <td>
      Targeting on and off, with the off variation
    </td>
    
    <td>
      There is no on/off switch above the rules. To turn a flag off for everyone, remove or reorder its rules so the default targeting rule serves the off value. For a switch that stays independent of the rules, create a <code>
        Kill switch
      </code>
      
       and check it first in your code.
    </td>
  </tr>
  
  <tr>
    <td>
      Individual targets
    </td>
    
    <td>
      A conditional rule with the condition <code>
        identifier is one of
      </code>
      
       the listed identifiers. Add a <code>
        context.kind
      </code>
      
       condition to the rule when the identifiers belong to a context kind other than <code>
        user
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Rule with clauses
    </td>
    
    <td>
      A <strong>
        conditional rule
      </strong>
      
       with one attribute condition per clause. Every condition of a rule must match, as in LaunchDarkly. There is no OR inside a rule: write a second rule, or use a segment, whose condition groups are combined with OR.
    </td>
  </tr>
  
  <tr>
    <td>
      Attribute operators: string, number, semver, date, regex
    </td>
    
    <td>
      Attribute conditions read a trait as text, a number, a semantic version, a datetime, an array, or a boolean, each with its own operators. There is no regular expression operator. Text conditions are case-sensitive.
    </td>
  </tr>
  
  <tr>
    <td>
      Percentage rollout, bucketed by a chosen context kind and attribute
    </td>
    
    <td>
      A <a href="https://docs.configdirector.com/getting-started/core-concepts#targeting-rules">
        percentage rollout
      </a>
      
      , on its own or as the value of a conditional rule. Contexts are assigned by their context kind and identifier. Choosing another attribute to bucket by is not available: evaluate with the entity you want to bucket by as the context instead, for example <code>
        kind: "organization"
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Segment, rule-based, per environment
    </td>
    
    <td>
      A <a href="https://docs.configdirector.com/getting-started/segments">
        segment
      </a>
      
      , defined once per project with one or more condition groups, used by any config in the project. An environment that needs its own definition gets an <strong>
        environment override
      </strong>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Segment, list-based
    </td>
    
    <td>
      Not yet available. Use a condition group with <code>
        identifier is one of
      </code>
      
       the listed identifiers; it is kept in one place and reused the same way.
    </td>
  </tr>
  
  <tr>
    <td>
      Prerequisites
    </td>
    
    <td>
      Not available. Put the condition the prerequisite flag expressed on the dependent flag's own rules, or check both flags in code.
    </td>
  </tr>
  
  <tr>
    <td>
      Scheduled changes, approvals, guarded rollouts
    </td>
    
    <td>
      Not available. Changes take effect as soon as they are saved.
    </td>
  </tr>
  
  <tr>
    <td>
      Test run
    </td>
    
    <td>
      The <a href="https://docs.configdirector.com/getting-started/testing-targeting-rules">
        targeting rules tester
      </a>
      
      , which evaluates saved or unsaved rules against a context and shows why each rule matched or not.
    </td>
  </tr>
</tbody>
</table>

### Contexts

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly
    </th>
    
    <th>
      ConfigDirector
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Context
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/getting-started/core-concepts#contexts">
        Context
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Context kind: <code>
        user
      </code>
      
      , <code>
        organization
      </code>
      
      , <code>
        device
      </code>
      
      , custom
    </td>
    
    <td>
      <strong>
        Context kind
      </strong>
      
      . Leaving it out means <code>
        user
      </code>
      
      . Any lowercase name of up to 64 letters, digits, dashes, or underscores works.
    </td>
  </tr>
  
  <tr>
    <td>
      Context <code>
        key
      </code>
    </td>
    
    <td>
      <strong>
        Identifier
      </strong>
      
      , <code>
        id
      </code>
      
       in the SDKs. A context is identified by its kind and identifier together, so user <code>
        42
      </code>
      
       and device <code>
        42
      </code>
      
       are different contexts.
    </td>
  </tr>
  
  <tr>
    <td>
      Context <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        name
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Custom attributes, such as <code>
        email
      </code>
      
       or <code>
        plan
      </code>
    </td>
    
    <td>
      <strong>
        Traits
      </strong>
      
      , an arbitrary JSON object. Targeting rules address a trait with a JSON pointer, such as <code>
        /plan
      </code>
      
       or <code>
        /address/country
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        anonymous: true
      </code>
    </td>
    
    <td>
      An <strong>
        anonymous context
      </strong>
      
      : a context given without an identifier, or with <code>
        anonymous
      </code>
      
       set. It is evaluated but never stored or shown in the dashboard.
    </td>
  </tr>
  
  <tr>
    <td>
      Multi-context, several kinds in one evaluation
    </td>
    
    <td>
      Not available. Each evaluation is for one context. To target a user by their organization, copy the organization's attributes you target by into the user's traits, for example <code>
        /organization/plan
      </code>
      
      . Or evaluate the config a second time with the organization as the context.
    </td>
  </tr>
  
  <tr>
    <td>
      Private attributes
    </td>
    
    <td>
      Not available. Only put the traits your targeting rules use in the context.
    </td>
  </tr>
</tbody>
</table>

### SDKs and delivery

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly
    </th>
    
    <th>
      ConfigDirector
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      SDK key
    </td>
    
    <td>
      <strong>
        Server SDK key
      </strong>
      
      , a secret, for server SDKs.
    </td>
  </tr>
  
  <tr>
    <td>
      Client-side ID and mobile key
    </td>
    
    <td>
      <strong>
        Client SDK key
      </strong>
      
      , for browser and mobile SDKs. It is not secret, because client SDKs only receive evaluated values.
    </td>
  </tr>
  
  <tr>
    <td>
      Streaming by default, with polling as an option
    </td>
    
    <td>
      The same. See <a href="https://docs.configdirector.com/getting-started/architecture">
        Architecture
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Server SDKs evaluate locally
    </td>
    
    <td>
      The same. Server SDKs receive the rules and segments and evaluate every context in memory.
    </td>
  </tr>
  
  <tr>
    <td>
      Client SDKs receive evaluated values
    </td>
    
    <td>
      The same.
    </td>
  </tr>
  
  <tr>
    <td>
      Fallback value in code
    </td>
    
    <td>
      The <strong>
        in-code default value
      </strong>
      
      , passed with every read. It is returned only when the SDK cannot evaluate the config.
    </td>
  </tr>
  
  <tr>
    <td>
      Flag change listeners
    </td>
    
    <td>
      <code>
        watch
      </code>
      
       in the JavaScript SDKs, a stream or flow in the mobile SDKs, and the <code>
        configsUpdated
      </code>
      
       hook. Each SDK page shows them.
    </td>
  </tr>
  
  <tr>
    <td>
      Bootstrapping from <code>
        localStorage
      </code>
      
       or the server
    </td>
    
    <td>
      Client SDKs keep the last values they received on the device, in the browser's <code>
        localStorage
      </code>
      
      , and serve them on the next launch with the same context until live values arrive. Keeping them is on by default, with no bootstrap option to set, and the client is ready only once live values arrive. A server-rendered payload cannot be passed to the browser SDK: the <a href="https://docs.configdirector.com/sdks/meta/nextjs">
        Next.js
      </a>
      
       and <a href="https://docs.configdirector.com/sdks/meta/nuxt">
        Nuxt
      </a>
      
       SDKs evaluate configs during server-side rendering, so the first render carries real values.
    </td>
  </tr>
  
  <tr>
    <td>
      Relay Proxy
    </td>
    
    <td>
      Not needed. Every SDK connects to ConfigDirector directly over streaming. A base <code>
        url
      </code>
      
       option is available for an HTTP proxy of your own.
    </td>
  </tr>
  
  <tr>
    <td>
      Test data sources
    </td>
    
    <td>
      The <strong>
        test client
      </strong>
      
       in each SDK's testing entry point, and the in-memory providers of the OpenFeature SDKs. See <em>
        Test your code
      </em>
      
       on each SDK page.
    </td>
  </tr>
  
  <tr>
    <td>
      Experimentation metrics and results
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/getting-started/experiments#define-a-metric">
        Metrics
      </a>
      
       on the events your application reports with <code>
        track
      </code>
      
      , and results for each variation on the experiment's <strong>
        Experiment
      </strong>
      
       tab. <a href="#move-your-experiments">
        Move your experiments
      </a>
      
       shows how LaunchDarkly's experiments, metrics, and results page map, and <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed">
        How ConfigDirector computes results
      </a>
      
       explains the method.
    </td>
  </tr>
</tbody>
</table>

## Recreate the flags

Create the configs in ConfigDirector while the LaunchDarkly flags keep serving your applications. Nothing changes for your users until the SDKs switch over.

For each flag you decided to move:

1. Create a config with the same key, the role and type from the tables above, and the lifetime. Set its initial value to what LaunchDarkly serves most users in production today, so an application that reads it before its rules exist gets a safe value.
2. Set the **SDK availability** to match where the flag is read.
3. In each environment, recreate the targeting: individual targets as `identifier is one of` rules, rules as conditional rules, the rollout as a percentage rollout, and the fallthrough as the default targeting rule value.
4. Check a few contexts with the [targeting rules tester](https://docs.configdirector.com/getting-started/testing-targeting-rules). The result should be the value LaunchDarkly serves them.

There are three ways to do this:

- **The dashboard**, for a project with a few flags. The config form and the targeting rules editor cover everything above.
- **The Terraform provider**, if your LaunchDarkly flags were managed with LaunchDarkly's Terraform provider. The [ConfigDirector Terraform provider](https://docs.configdirector.com/integrations/terraform) has `configdirector_config` for the flag and `configdirector_config_targeting_rules` for the rules of each environment, with the same structure as the tables above. Translate the resources once and apply.
- **The MCP server**, for a project with many flags that you manage by hand. Connect the [MCP server](https://docs.configdirector.com/integrations/mcp) to your coding assistant, give it the flag list from the LaunchDarkly API, and ask it to create the configs and their targeting rules. Review what it created in the dashboard before switching any SDK. The `configdirector-migrate-from-launchdarkly` [agent skill](https://docs.configdirector.com/integrations/agents) holds your agent to this guide: it has you export the flags, segments, and experiments in your own terminal, proposes which flags to move, which to hardcode, and which to leave in LaunchDarkly until their running experiment ends, creates the segments and then the configs, with an experiment for each flag that runs one, in batches you confirm, checks the rules with an evaluation, and afterwards switches an application's SDK calls over, its `track` calls included, as the next section and [Move your experiments](#move-your-experiments) show.

<note>

Segments come first. Create the segments a project's rules use before the configs, and translate the LaunchDarkly segment of each environment into a project definition plus an environment override where the environments differ.

</note>

## Switch the SDKs

Switch one application at a time. Pass the value LaunchDarkly serves today as the in-code default value, so that a config that is missing, or read before the client is ready, still gives the result users get now.

### Server SDKs

A Node.js service reading a flag with the LaunchDarkly server SDK:

```ts [Before: LaunchDarkly]
import * as LaunchDarkly from "@launchdarkly/node-server-sdk";

const ldClient = LaunchDarkly.init("YOUR-LAUNCHDARKLY-SDK-KEY");
await ldClient.waitForInitialization({ timeout: 10 });

const context = {
  kind: "user",
  key: "user-123",
  name: "Example User",
  email: "user@example.com",
  plan: "enterprise",
};

const newCheckout = await ldClient.variation("new-checkout", context, false);
```

The same flag with the ConfigDirector [Node.js SDK](https://docs.configdirector.com/sdks/server/node-js). The context's custom attributes move under `traits`, and the key becomes `id`:

```ts [After: ConfigDirector]
import { createClient } from "@configdirector/server-sdk";

const client = createClient("YOUR-SERVER-SDK-KEY");
await client.initialize();

const context = {
  id: "user-123",
  name: "Example User",
  traits: {
    email: "user@example.com",
    plan: "enterprise",
  },
};

const newCheckout = client.getValue("new-checkout", false, context);
```

A context of another kind sets `kind`:

```ts
const organization = { id: "acme", kind: "organization", name: "Acme Inc.", traits: { plan: "enterprise" } };

const newCheckout = client.getValue("new-checkout", false, organization);
```

`getValue` is synchronous: the server SDK evaluates the rules it already holds in memory. The type of the value is the type of the in-code default value you pass, so a string flag is read with a string default and a JSON flag with an object. The [Python](https://docs.configdirector.com/sdks/server/python), [Java](https://docs.configdirector.com/sdks/server/java), [.NET](https://docs.configdirector.com/sdks/server/dotnet), [Go](https://docs.configdirector.com/sdks/server/go), [PHP](https://docs.configdirector.com/sdks/server/php), and [Ruby](https://docs.configdirector.com/sdks/server/ruby) SDKs follow the same shape.

### Browser and mobile SDKs

A web application with the LaunchDarkly JavaScript client SDK:

```ts [Before: LaunchDarkly]
import * as LDClient from "launchdarkly-js-client-sdk";

const ldClient = LDClient.initialize("YOUR-CLIENT-SIDE-ID", {
  kind: "user",
  key: "user-123",
  name: "Example User",
  plan: "enterprise",
});
await ldClient.waitForInitialization(5);

const newCheckout = ldClient.variation("new-checkout", false);
ldClient.on("change:new-checkout", (value) => render(value));

await ldClient.identify({ kind: "user", key: "user-456" });
```

The same with the ConfigDirector [JavaScript SDK](https://docs.configdirector.com/sdks/browser/javascript). The context is given to `initialize`, changes arrive through `watch`, and `identify` becomes `updateContext`:

```ts [After: ConfigDirector]
import { createClient } from "@configdirector/client-sdk";

const client = createClient("YOUR-CLIENT-SDK-KEY");
await client.initialize({
  id: "user-123",
  name: "Example User",
  traits: { plan: "enterprise" },
});

const newCheckout = client.getValue("new-checkout", false);
client.watch("new-checkout", false, (value) => render(value));

await client.updateContext({ id: "user-456" });
```

`initialize` resolves when the first values arrive or after its timeout, 3 seconds by default; after a timeout the client keeps connecting in the background and, until live values arrive, reads return the values kept on the device from an earlier launch with the same context, or the in-code default value when there are none. The [React](https://docs.configdirector.com/sdks/browser/react), [Vue](https://docs.configdirector.com/sdks/browser/vue), [React Native](https://docs.configdirector.com/sdks/mobile/react-native), [Flutter](https://docs.configdirector.com/sdks/mobile/flutter), [Swift](https://docs.configdirector.com/sdks/mobile/swift), and [Android](https://docs.configdirector.com/sdks/mobile/android) SDKs follow the same shape, with a hook, composable, stream, or flow in place of `watch`.

### Applications on OpenFeature

If your code reads flags through OpenFeature with the LaunchDarkly provider, the code does not change: register the ConfigDirector provider instead. The `targetingKey` becomes the context's identifier. Attributes the ConfigDirector provider reads are `kind`, `name`, `traits`, and `anonymous`, so move the custom attributes your rules use into a `traits` attribute. See [OpenFeature with ConfigDirector](https://docs.configdirector.com/sdks/openfeature) for the providers and the full mapping.

### Which SDK replaces which

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly SDK
    </th>
    
    <th>
      ConfigDirector SDK
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      JavaScript client
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/browser/javascript">
        JavaScript
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      React Web
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/browser/react">
        React
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Vue
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/browser/vue">
        Vue
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      React Native
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/mobile/react-native">
        React Native
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Flutter
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/mobile/flutter">
        Flutter
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      iOS
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/mobile/swift">
        Swift
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Android
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/mobile/android">
        Android
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Node.js server, Python, Java, .NET server, Go, PHP, Ruby
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/server/node-js">
        Node.js
      </a>
      
      , <a href="https://docs.configdirector.com/sdks/server/python">
        Python
      </a>
      
      , <a href="https://docs.configdirector.com/sdks/server/java">
        Java
      </a>
      
      , <a href="https://docs.configdirector.com/sdks/server/dotnet">
        .NET
      </a>
      
      , <a href="https://docs.configdirector.com/sdks/server/go">
        Go
      </a>
      
      , <a href="https://docs.configdirector.com/sdks/server/php">
        PHP
      </a>
      
      , <a href="https://docs.configdirector.com/sdks/server/ruby">
        Ruby
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Next.js integration
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/meta/nextjs">
        Next.js
      </a>
      
      . ConfigDirector also has a <a href="https://docs.configdirector.com/sdks/meta/nuxt">
        Nuxt
      </a>
      
       SDK.
    </td>
  </tr>
  
  <tr>
    <td>
      OpenFeature providers
    </td>
    
    <td>
      <a href="https://docs.configdirector.com/sdks/openfeature">
        OpenFeature providers
      </a>
      
       for the web, Swift, Android, Flutter, Node.js, Python, Java, .NET, Go, PHP, and Ruby
    </td>
  </tr>
</tbody>
</table>

ConfigDirector has no SDK for Rust, C++, Erlang, Haskell, Lua, Roku, or Electron, and no edge SDKs. If you need one of them, write to [sdks@configdirector.com](mailto:sdks@configdirector.com) with the SDK you are looking for and we will let you know the projected date for its release.

## Move your experiments

This section is for teams that also run experiments with LaunchDarkly Experimentation. If you only move flags, skip to [Verify, then remove LaunchDarkly](#verify-then-remove-launchdarkly).

The biggest change is where the results come from. ConfigDirector measures an experiment on the events your application reports to ConfigDirector with `track`, and shows the results on the experiment's **Experiment** tab. Your `track` calls keep their event names and change only their shape, while LaunchDarkly's *page viewed* and *clicked or tapped* metrics, which you set up in LaunchDarkly's interface, become `track` calls in your code. What stays the same: the flag's key and its variations, a percentage split that serves each context the same variation every time, and a context joining the experiment when your code evaluates the flag for it.

### What to settle first

1. **Let the experiments running in LaunchDarkly finish there.** ConfigDirector assigns variations afresh, so a context could get a different variation from the one it had, and the counts would start from zero. Keep reading a running experiment's flag with the LaunchDarkly SDK until you have read its result, and start new experiments in ConfigDirector.
2. **Decide which context is counted.** LaunchDarkly assigns variations by an experiment's randomization unit, a context kind you choose. In ConfigDirector, the unit is the context kind your code evaluates the experiment with, and a context is assigned and counted by its context kind and identifier: an experiment randomized by organization is evaluated with `kind: "organization"` contexts. A context marked `anonymous`, or without an `id`, counts for no experiment, unlike in LaunchDarkly, where anonymous contexts can be in experiments. To count signed-out visitors, give each one an `id` of your own, such as one you keep in a cookie, and leave `anonymous` off. [Give every context a stable identifier](https://docs.configdirector.com/getting-started/experiments#give-every-context-a-stable-identifier) has the details, including what each SDK serves a context without an `id`.
3. **List the events your experiments measure.** Each LaunchDarkly metric you keep becomes a [metric](https://docs.configdirector.com/getting-started/experiments#define-a-metric) on an event your application reports with `track`. Only those events need `track`: ConfigDirector stores up to 100,000 tracked events per environment per day, so report the outcomes your experiments compare rather than every event. See [Limits](https://docs.configdirector.com/monitoring/activity#limits).

### How experiments map

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly
    </th>
    
    <th>
      ConfigDirector
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Experiment on a flag
    </td>
    
    <td>
      An <a href="https://docs.configdirector.com/getting-started/experiments">
        experiment
      </a>
      
      : a config with the <code>
        Experiment
      </code>
      
       role, of type String, Integer, Float, or Boolean. Keep the flag's key as the config's key, so only the SDK call changes in your code. An experiment cannot be of type JSON: give an experiment on a JSON flag a String variation for each JSON value, and have your code turn each one into the JSON it used to read.
    </td>
  </tr>
  
  <tr>
    <td>
      Experiment on an AgentControl config
    </td>
    
    <td>
      Not available. An experiment's variations are values your code reads, so a String experiment can name the prompt or the model each variation uses.
    </td>
  </tr>
  
  <tr>
    <td>
      Variations
    </td>
    
    <td>
      Named <strong>
        variations
      </strong>
      
      . Keep LaunchDarkly's names, since the dashboard, the audit log, the CLI, and OpenFeature refer to a variation by its name. A Boolean experiment starts with <code>
        Enabled
      </code>
      
       and <code>
        Disabled
      </code>
      
      , which you can rename on the <strong>
        Settings
      </strong>
      
       tab.
    </td>
  </tr>
  
  <tr>
    <td>
      A/A test
    </td>
    
    <td>
      Not available as a setting. Give the experiment two variations with different values, such as <code>
        a1
      </code>
      
       and <code>
        a2
      </code>
      
      , that your code treats the same.
    </td>
  </tr>
  
  <tr>
    <td>
      Control variation
    </td>
    
    <td>
      The <strong>
        control
      </strong>
      
      : the variation the default targeting rule serves when the run starts. Pick LaunchDarkly's control as the <strong>
        Default variation
      </strong>
      
       when you create the experiment. See <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#the-control">
        The control
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Randomization unit
    </td>
    
    <td>
      The context kind your code evaluates the experiment with, such as <code>
        organization
      </code>
      
      . Any context kind can be used, with no setting to turn on.
    </td>
  </tr>
  
  <tr>
    <td>
      Experiment audience, the targeting rule the experiment runs on
    </td>
    
    <td>
      Where the percentage rollout sits in the targeting rules: inside a conditional rule, with conditions or a <a href="https://docs.configdirector.com/getting-started/segments">
        segment
      </a>
      
      , for part of your users, or on its own for every context the rules above it do not match. Contexts a conditional rule does not match get the rules below it and are not part of that split.
    </td>
  </tr>
  
  <tr>
    <td>
      Audience allocation, the variations split, and the variation served to contexts outside the experiment
    </td>
    
    <td>
      The shares of the <strong>
        percentage rollout
      </strong>
      
      , one per variation. Shares that add up to less than 100%, such as 10% for each of two variations, leave the other contexts out of the split: they go on to the rules below the percentage rollout and are served what those rules serve, usually the control through the default targeting rule. The targeting rules editor warns you when an experiment's shares add up to less than 100%.
    </td>
  </tr>
  
  <tr>
    <td>
      A context entering the experiment when your code evaluates the flag
    </td>
    
    <td>
      An <strong>
        exposure
      </strong>
      
      : the percentage rollout serving a context a variation during a run. A context counts once per variation, however often it evaluates the experiment. Only the <a href="https://docs.configdirector.com/getting-started/experiments#sdk-versions-that-report-exposures">
        SDK versions that report exposures
      </a>
      
       are counted.
    </td>
  </tr>
  
  <tr>
    <td>
      Iterations, and reshuffling traffic between them
    </td>
    
    <td>
      <strong>
        Runs
      </strong>
      
      . Saving a percentage rollout in an environment's targeting rules starts a run, with no separate start step. <strong>
        Ship…
      </strong>
      
      , <strong>
        Stop run…
      </strong>
      
      , or removing the last percentage rollout ends it, and saving different shares, or adding or removing a percentage rollout, ends it and starts a new run whose counts start from zero. Editing the hypothesis, the metrics, or the other rules does not end the run. A new run with the same shares serves each context the variation it had before. Each environment runs its own split, one run at a time.
    </td>
  </tr>
  
  <tr>
    <td>
      Primary metric
    </td>
    
    <td>
      The <strong>
        primary metric
      </strong>
      
      , with the metric kind it decides on.
    </td>
  </tr>
  
  <tr>
    <td>
      Secondary metrics, up to 20 metrics per experiment
    </td>
    
    <td>
      <strong>
        Secondary metrics
      </strong>
      
      , which support the decision, and <strong>
        guardrails
      </strong>
      
      , metrics that must not get worse: the results warn you when a guardrail is likely worse for a variation. An experiment can have up to 10 metrics, and a project up to 50.
    </td>
  </tr>
  
  <tr>
    <td>
      Hypothesis
    </td>
    
    <td>
      The <strong>
        hypothesis
      </strong>
      
      , on the experiment's <strong>
        Settings
      </strong>
      
       tab. Each run keeps the hypothesis as it was when the run started.
    </td>
  </tr>
  
  <tr>
    <td>
      Stopping the experiment and shipping the winning variation
    </td>
    
    <td>
      <strong>
        Ship…
      </strong>
      
      : in one save, the variation you pick becomes the default targeting rule value and every percentage rollout is removed. It applies to the whole environment, not only to the contexts the experiment's rule matched; a conditional rule that serves a single value stays, so the contexts it matches keep that value. See <a href="https://docs.configdirector.com/getting-started/experiments#ship-a-variation">
        Ship a variation
      </a>
      
      . To end a run without choosing a variation, use <strong>
        Stop run…
      </strong>
      
      : every percentage rollout is removed and the default targeting rule value keeps serving. Either way, the run keeps the note you give.
    </td>
  </tr>
  
  <tr>
    <td>
      Health checks, such as the sample ratio mismatch check
    </td>
    
    <td>
      The <a href="https://docs.configdirector.com/getting-started/experiments#the-mismatch-warning">
        mismatch warning
      </a>
      
       on the <strong>
        Exposures
      </strong>
      
       card, which says when the split does not match the configured shares. A mismatch also raises an <a href="https://docs.configdirector.com/monitoring/alerts#experiment-split-does-not-match-its-configured-shares">
        alert
      </a>
      
      . The card also says how many evaluations it left out because they came from contexts without an identifier or from older SDK versions, and the <strong>
        Results
      </strong>
      
       panel shows each metric's values from the start of the run, so you can check that its events arrive.
    </td>
  </tr>
  
  <tr>
    <td>
      Sample size calculator
    </td>
    
    <td>
      The <strong>
        How long to run
      </strong>
      
       card on the experiment's <strong>
        Experiment
      </strong>
      
       tab. For lifts of 2%, 5%, 10%, 20% and 50% on the primary metric, it gives the exposures a run needs before a variation has a good chance of reading <strong>
        Likely better
      </strong>
      
      , and the days that takes: before a run from the conversion and the contexts a day you enter, and during a run from the run's own numbers. See <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#how-long-a-run-needs">
        How long a run needs
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Frequentist analysis, fixed-horizon or sequential
    </td>
    
    <td>
      Not available. ConfigDirector's results are Bayesian, and reading them often does not change what they mean, but early in a run they can swing a lot, so decide before you start how long the run will go. See <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#how-the-variations-are-compared">
        How the variations are compared
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Bayesian analysis, with a threshold you choose and shrinkage priors for the treatments unless you choose uninformative priors
    </td>
    
    <td>
      Bayesian analysis with flat priors for every variation, so every number comes from the run's own data, and one bar for the verdicts, the same in both directions and for every metric. Neither can be changed.
    </td>
  </tr>
  
  <tr>
    <td>
      CUPED, stratified sampling, multiple comparisons correction
    </td>
    
    <td>
      Not available. Results use only what happened during the run, and each metric is compared on its own. <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#what-the-method-does-not-do">
        What the method does not do
      </a>
      
       explains what that means for reading them.
    </td>
  </tr>
  
  <tr>
    <td>
      Holdouts
    </td>
    
    <td>
      Not available. To keep some users out of every experiment, add a conditional rule with a <a href="https://docs.configdirector.com/getting-started/segments">
        segment
      </a>
      
       of those users above each experiment's split, serving them the control; they are not part of the experiment. ConfigDirector does not compare those users with the experiments' combined effect.
    </td>
  </tr>
  
  <tr>
    <td>
      Mutually exclusive experiments, in layers
    </td>
    
    <td>
      Not available. A context can be in several experiments at once, and an event it reports counts toward every run that exposed it. To keep two experiments apart, put each one's split inside a conditional rule on a trait your code sets, such as <code>
        /experiment_group
      </code>
      
      , so that no context matches both.
    </td>
  </tr>
  
  <tr>
    <td>
      Multi-armed bandits
    </td>
    
    <td>
      Not available. A run's shares stay as you saved them, and saving different shares starts a new run.
    </td>
  </tr>
  
  <tr>
    <td>
      Funnel optimization experiments
    </td>
    
    <td>
      An experiment with a <a href="https://docs.configdirector.com/getting-started/experiments#follow-the-checkout-with-a-funnel">
        funnel metric
      </a>
      
       as its primary metric, which decides on the share of contexts that reached the last step, as LaunchDarkly decides on the funnel's last metric. The other steps show how many contexts reached each one, with no result of their own, and a context that skips a step stops there. See the funnel metric groups row in <a href="#how-metrics-map">
        How metrics map
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Results filtered by context attribute
    </td>
    
    <td>
      Not available. Results are per percentage rollout, so to compare customer tiers, give each tier its own split inside a conditional rule on a trait such as <code>
        /tier
      </code>
      
       before the run starts, and each split gets results of its own.
    </td>
  </tr>
  
  <tr>
    <td>
      Warehouse native experimentation
    </td>
    
    <td>
      Not available. Results come from the events your application reports with <code>
        track
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Data Export of experiment data
    </td>
    
    <td>
      Not available. The <a href="https://docs.configdirector.com/integrations/cli#experiment-runs">
        CLI
      </a>
      
      , the <a href="https://docs.configdirector.com/integrations/mcp#what-the-assistant-can-do">
        MCP server
      </a>
      
      , and the <a href="https://docs.configdirector.com/integrations/admin-api#experiment-runs-shipping-and-stopping">
        Admin API
      </a>
      
       return each run's full results, and your application can report each exposure to your analytics tool, as <a href="https://docs.configdirector.com/getting-started/experiments#send-exposures-to-your-analytics-tool">
        Send exposures to your analytics tool
      </a>
      
       shows.
    </td>
  </tr>
</tbody>
</table>

### How metrics map

A ConfigDirector metric is defined once per project on the **Metrics** page with a direction, **Higher is better** or **Lower is better**. Most metrics measure the events with one name your application reports with `track`, all of them or only those whose details match a filter, and a metric can instead be a ratio, a funnel or a retention metric. Each metric kind turns a variation's events into one number, and a context that reported nothing counts as zero:

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly metric
    </th>
    
    <th>
      ConfigDirector metric
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Custom conversion binary
    </td>
    
    <td>
      A metric on the same event name, with <strong>
        Conversion
      </strong>
      
      : the share of the variation's contexts that reported the event at least once.
    </td>
  </tr>
  
  <tr>
    <td>
      Custom conversion count
    </td>
    
    <td>
      <strong>
        Count per context
      </strong>
      
      : how many times each context reported the event, averaged over the variation's contexts.
    </td>
  </tr>
  
  <tr>
    <td>
      Custom numeric, summed per context
    </td>
    
    <td>
      <strong>
        Value per context
      </strong>
      
      : the sum of the event's <code>
        value
      </code>
      
       per context, averaged over the variation's contexts. Track the event with the number you passed as <code>
        metricValue
      </code>
      
       as its <code>
        value
      </code>
      
      . A number the event's <code>
        data
      </code>
      
       carries, such as the items in an order, can be summed instead as the metric's <strong>
        value field
      </strong>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Custom numeric with <strong>
        Exclude units that generate no events
      </strong>
    </td>
    
    <td>
      Not available. A context that reported nothing counts as zero, so the average is over every context the variation reached.
    </td>
  </tr>
  
  <tr>
    <td>
      Custom numeric averaged per context
    </td>
    
    <td>
      Not available as such. The nearest measure is a <a href="https://docs.configdirector.com/getting-started/experiments#measure-revenue-per-order-with-a-ratio">
        ratio
      </a>
      
       of the event's value to its event count, such as <code>
        page_loaded
      </code>
      
       value ÷ <code>
        page_loaded
      </code>
      
       events for the load time per page load, with <strong>
        Lower is better
      </strong>
      
      . It weighs every event the same, so a context with many events counts for more, while LaunchDarkly averages each context's own average, so every context counts the same.
    </td>
  </tr>
  
  <tr>
    <td>
      Custom numeric analyzed by percentile
    </td>
    
    <td>
      Not available. For a measure such as load time, track an event when it is slower than a threshold you pick, and give it a <strong>
        Conversion
      </strong>
      
       metric with <strong>
        Lower is better
      </strong>
      
      : the share of contexts that had a slow load.
    </td>
  </tr>
  
  <tr>
    <td>
      Page viewed, as occurrence or count
    </td>
    
    <td>
      A <code>
        track
      </code>
      
       call your code makes where the page shows, such as <code>
        client.track("pricing_page_viewed")
      </code>
      
      , with <strong>
        Conversion
      </strong>
      
       for an occurrence metric or <strong>
        Count per context
      </strong>
      
       for a count metric.
    </td>
  </tr>
  
  <tr>
    <td>
      Clicked or tapped, as occurrence or count
    </td>
    
    <td>
      A <code>
        track
      </code>
      
       call in the element's click handler, with <strong>
        Conversion
      </strong>
      
       for an occurrence metric or <strong>
        Count per context
      </strong>
      
       for a count metric.
    </td>
  </tr>
  
  <tr>
    <td>
      Success criteria: higher or lower is better
    </td>
    
    <td>
      The metric's <strong>
        Direction
      </strong>
      
      . The chance to beat control and the verdict follow it: on a metric where lower is better, fewer events than the control count as better.
    </td>
  </tr>
  
  <tr>
    <td>
      Standard metric groups
    </td>
    
    <td>
      Not available. Attach each metric on its own.
    </td>
  </tr>
  
  <tr>
    <td>
      Funnel metric groups
    </td>
    
    <td>
      A <a href="https://docs.configdirector.com/getting-started/experiments#follow-the-checkout-with-a-funnel">
        funnel metric
      </a>
      
       of 2 to 5 steps in order, each an event name with an optional filter. A context reaches a step only with an event that happened at or after it reached the step before, so a context that skips a step stops there, where LaunchDarkly still counts it at the later steps. The funnel has one result, the share of exposed contexts that reached the last step, with how many contexts reached each step beside it, where LaunchDarkly gives each step a result of its own. A step on a page viewed or clicked metric becomes a <code>
        track
      </code>
      
       call, as the rows for those metrics show.
    </td>
  </tr>
  
  <tr>
    <td>
      Filters on event data
    </td>
    
    <td>
      A metric <strong>
        filter
      </strong>
      
      : up to 5 conditions on the event's <code>
        details
      </code>
      
      , which take the place of LaunchDarkly's <code>
        data
      </code>
      
      , and an event counts when it matches all of them. Text takes <strong>
        is one of
      </strong>
      
       or <strong>
        is NOT one of
      </strong>
      
      , a number <code>
        =
      </code>
      
      , <code>
        !=
      </code>
      
      , <code>
        >
      </code>
      
      , <code>
        >=
      </code>
      
      , <code>
        <
      </code>
      
       or <code>
        <=
      </code>
      
      , and a boolean <strong>
        is true
      </strong>
      
       or <strong>
        is false
      </strong>
      
      . An OR between values of one field becomes <strong>
        is one of
      </strong>
      
       with each value, and conditions on different fields cannot be joined by OR. A nested field can be filtered on too, such as <code>
        /shipping/country
      </code>
      
      . See <a href="https://docs.configdirector.com/getting-started/experiments#filter-the-events-or-sum-a-detail-field">
        Filter the events or sum a detail field
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Filters on context attributes
    </td>
    
    <td>
      Not available directly. Copy the attribute into the event's <code>
        details
      </code>
      
       when you call <code>
        track
      </code>
      
      , such as the context's plan as <code>
        plan
      </code>
      
      , and give the metric a <strong>
        filter
      </strong>
      
       on that detail field.
    </td>
  </tr>
  
  <tr>
    <td>
      Winsorization
    </td>
    
    <td>
      Not available. Each value counts as reported, so cap outlying values in your code before you call <code>
        track
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Autogenerated metrics from observability, AI, or OpenTelemetry events
    </td>
    
    <td>
      Not available. Metrics come only from <code>
        track
      </code>
      
      , so report the outcomes your code sees, such as an error it shows, with <code>
        track
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Imported metric events
    </td>
    
    <td>
      Not available. An event counts only when an SDK reports it with <code>
        track
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      Measurement window
    </td>
    
    <td>
      A <a href="https://docs.configdirector.com/getting-started/experiments#measure-who-comes-back-with-retention">
        retention metric
      </a>
      
      , for the share of contexts that reported an event within a window. Its first and last day are counted from each context's own exposure, in days of 24 hours from 1 to 90, and a context is measured only once its last day has ended, as LaunchDarkly counts a context only once its window is complete. A window in hours or minutes, one that starts at the exposure, and a window on a count or a value are not available: every other metric counts an event from its context's first exposure to the end of the run. See <a href="https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#retention">
        Retention
      </a>
      
      .
    </td>
  </tr>
</tbody>
</table>

[How ConfigDirector computes results](https://docs.configdirector.com/getting-started/experiments/how-results-are-computed#metrics) explains each metric kind, and the Experiments guide shows how to [define a metric](https://docs.configdirector.com/getting-started/experiments#define-a-metric) and [attach it with a role](https://docs.configdirector.com/getting-started/experiments#attach-metrics-and-write-the-hypothesis).

### Replace the track calls

Your application keeps reporting the same outcomes under the same event names, so each metric keeps the name your team knows. Report each one for the context you evaluate the experiment with. LaunchDarkly's `metricValue` becomes the event's `value`, and its `data` becomes `details` when it is an object of up to 20 top-level fields and 1 KB as JSON. Details beyond those limits are left out and the event is still reported, so keep only the fields you need. Wrap any other `data`, such as a single string, in an object, like `{ source: data }`.

A Node.js service with the LaunchDarkly server SDK:

```ts [Before: LaunchDarkly]
const context = { kind: "user", key: "user-123", plan: "enterprise" };

const buttonLabel = await ldClient.variation("checkout-cta-copy", context, "Start free trial");

ldClient.track("checkout_completed", context, { coupon: "SPRING" }, 49);
```

The same with the ConfigDirector [Node.js SDK](https://docs.configdirector.com/sdks/server/node-js#track-events). The context still comes second, and the amount and the data go in one object:

```ts [After: ConfigDirector]
const context = { id: "user-123", traits: { plan: "enterprise" } };

const buttonLabel = client.getValue("checkout-cta-copy", "Start free trial", context);

client.track("checkout_completed", context, { value: 49, details: { coupon: "SPRING" } });
```

A web application with the LaunchDarkly JavaScript client SDK:

```ts [Before: LaunchDarkly]
const buttonLabel = ldClient.variation("checkout-cta-copy", "Start free trial");

ldClient.track("checkout_completed", { coupon: "SPRING" }, 49);
```

The same with the ConfigDirector [JavaScript SDK](https://docs.configdirector.com/sdks/browser/javascript#track-events), which reports the event for the client's current context, the one you gave `initialize` or `updateContext`:

```ts [After: ConfigDirector]
const buttonLabel = client.getValue("checkout-cta-copy", "Start free trial");

client.track("checkout_completed", { value: 49, details: { coupon: "SPRING" } });
```

If your application tracks through OpenFeature's tracking API with the LaunchDarkly provider, its `track` calls stay as they are once the ConfigDirector provider is registered: the `value` of the tracking event details is still the event's value, and its other fields become the details.

`track` is available, and exposures are reported, from version 1.13.0 of the Node.js SDK and 1.11.0 of the JavaScript SDK. [SDK versions that report exposures](https://docs.configdirector.com/getting-started/experiments#sdk-versions-that-report-exposures) lists the version for every other SDK, and [Tracked events](https://docs.configdirector.com/monitoring/activity#tracked-events) links each SDK's `track`.

### Read the results

The **Results** panel on the experiment's **Experiment** tab compares each variation with the control on every metric the experiment is measured on. This is how it relates to LaunchDarkly's results page:

<table>
<thead>
  <tr>
    <th>
      LaunchDarkly results page
    </th>
    
    <th>
      ConfigDirector Results panel
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Control
    </td>
    
    <td>
      The <strong>
        control
      </strong>
      
      , first in each table.
    </td>
  </tr>
  
  <tr>
    <td>
      Conversion rate, or posterior mean
    </td>
    
    <td>
      Each variation's value, such as <code>
        14.3%
      </code>
      
       with <code>
        672 of 4,702
      </code>
      
       beneath it for <strong>
        Conversion
      </strong>
      
      , or the average per context for the other metric kinds.
    </td>
  </tr>
  
  <tr>
    <td>
      Relative difference
    </td>
    
    <td>
      The lift, in the <strong>
        Lift · likely range
      </strong>
      
       column: how much higher or lower the variation's value is than the control's.
    </td>
  </tr>
  
  <tr>
    <td>
      Credible interval
    </td>
    
    <td>
      The likely range beside the lift, such as <code>
        +1% to +25%
      </code>
      
      : where the real lift is likely to be. A range that spans zero means the variation could still turn out better or worse than the control.
    </td>
  </tr>
  
  <tr>
    <td>
      Probability to beat control
    </td>
    
    <td>
      <strong>
        Chance to beat control
      </strong>
      
      : the chance that the variation is better than the control, in the metric's direction.
    </td>
  </tr>
  
  <tr>
    <td>
      Probability to be best
    </td>
    
    <td>
      <strong>
        Chance to be best
      </strong>
      
      , shown with three or more variations: each variation's chance, the control included, of being the best of them all. With two variations, the panel leaves it out, since it would repeat the chance to beat control.
    </td>
  </tr>
  
  <tr>
    <td>
      Expected loss
    </td>
    
    <td>
      Not available. The likely range shows how much worse than the control a variation could be.
    </td>
  </tr>
  
  <tr>
    <td>
      The winning variation
    </td>
    
    <td>
      A <strong>
        verdict
      </strong>
      
       for each variation on each metric kind: <strong>
        Likely better
      </strong>
      
      , <strong>
        Likely worse
      </strong>
      
      , or <strong>
        No clear difference
      </strong>
      
      . The verdict on the primary metric's kind is the one the <strong>
        Ship
      </strong>
      
       dialog shows. Nothing ships or stops on its own: your team decides.
    </td>
  </tr>
  
  <tr>
    <td>
      Results updated at least every 10 minutes on the first day, hourly until day 60, then daily
    </td>
    
    <td>
      Results up to 25 minutes behind what your applications report, for the whole run.
    </td>
  </tr>
  
  <tr>
    <td>
      Charts of the results over time
    </td>
    
    <td>
      A daily chart of each variation's value for the run so far, with a point for each day in UTC, ending with the current numbers.
    </td>
  </tr>
</tbody>
</table>

The panel also warns you when a guardrail is likely worse for a variation. Until every variation has enough exposures, it shows each variation's value and says the run needs more exposures before the variations can be compared. [How ConfigDirector computes results](https://docs.configdirector.com/getting-started/experiments/how-results-are-computed) explains every number on the panel, and what the method does not do.

### Move one experiment

For each experiment you move:

1. Create the experiment with the flag's key and the `Experiment` role, with a variation for each LaunchDarkly variation under the same name, and pick LaunchDarkly's control as the **Default variation**. For a Boolean experiment, rename `Enabled` and `Disabled` on the **Settings** tab.
2. On the **Metrics** page, define a metric for each event the experiment measured, with its direction and the metric kinds you want.
3. On the experiment's **Settings** tab, attach the metrics with their roles, the primary metric with the kind it decides on, and write the hypothesis, before you start the run.
4. Release the code that reads the experiment with `getValue` and reports each outcome with `track`, for the same context, before you start the run.
5. Decide how long the run will go, such as one or two full weeks. In `Test`, click **Start experiment…**, save the split, and check that the **Exposures** card counts contexts and the **Results** panel shows each metric receiving events. Then save the split in your live environment, inside a conditional rule if the experiment targets part of your users.
6. When that time is up, read the primary metric's verdict, check the guardrails and the mismatch warning, and use **Ship…** or **Stop run…**, with a note, in each environment that ran the experiment.
7. Once the experiment's config has [settled](https://docs.configdirector.com/getting-started/experiments#remove-the-config-once-it-has-settled), put its value in your code, and archive the config once your applications stop reading it.

Experiments, metrics, and results are available on Free and Pay as you go, and tracked events are not billed. [Pricing and billing](https://docs.configdirector.com/getting-started/pricing-and-billing#billing-metrics) lists what is.

## Verify, then remove LaunchDarkly

Once an application reads a config from ConfigDirector:

- **Evaluation Activity** on the config shows the values being served in each environment. See [Evaluation Activity](https://docs.configdirector.com/monitoring/activity).
- **Alerts** catch the mistakes a migration makes: a key the application asks for that does not exist, a config read with the wrong type, an in-code default value that drifts from the value served, and the default value served more often than expected. See [Alerts](https://docs.configdirector.com/monitoring/alerts).
- For a flag you rolled out by percentage, the same identifier gets the same value on every evaluation, as in LaunchDarkly. The split itself is assigned afresh, so a user who was in LaunchDarkly's 10% is not necessarily in ConfigDirector's. Switch the SDK over at a point in the rollout where that is acceptable, or at 0% or 100%.

When every application has switched, remove the LaunchDarkly SDK and its keys from the code, and archive the flags in LaunchDarkly. From then on, the [config lifecycle](https://docs.configdirector.com/monitoring/lifecycle) tells you when each temporary config has settled and can be removed from the code too.

## Metering

Both services bill client SDK usage in monthly active users. One difference matters when your apps evaluate more than one context kind: LaunchDarkly bills only the kind with the most monthly active users, while ConfigDirector adds every kind together, so a `device` context before sign-in and a `user` context after it count as two. For server SDKs, LaunchDarkly counts service connections and ConfigDirector counts the hours they spend connected. ConfigDirector also counts Admin API requests. [Pricing and billing](https://docs.configdirector.com/getting-started/pricing-and-billing) explains the three and the free allowance, which applies on both pricing options.


## Sitemap

See the full [sitemap](https://docs.configdirector.com/sitemap.md) for all pages.
