LaunchDarkly

LaunchDarkly

Feature flagging and A/B testing platform used by engineering teams to manage rollouts and experiments. LaunchDarkly's SDK evaluates feature flags on the client side based on user targeting rules. Allows gradual rollouts, beta access, and kill switches without code deployments.

Overview

LaunchDarkly is a feature flagging and experimentation platform used by engineering teams to manage feature rollouts, A/B tests, and operational kill switches. Its client-side SDK evaluates feature flags based on targeting rules without requiring code deployments.

What This Script Does

LaunchDarkly's JavaScript SDK (ldclient-js) connects to LaunchDarkly's streaming infrastructure and performs the following:

  • Flag evaluation: On initialization, the SDK sends a user context object (containing attributes like user key, email, plan, or custom properties) to LaunchDarkly's servers. It receives back the evaluated flag values for that user.
  • Streaming updates: Maintains a persistent connection (via Server-Sent Events or polling) to receive real-time flag changes without page reloads.
  • Event tracking: Sends analytics events back to LaunchDarkly, including flag evaluation counts, custom conversion events (for experimentation), and optional click/pageview events for A/B test measurement.
  • Local storage: Caches flag values in localStorage to reduce latency on subsequent page loads and provide fallback values when offline.
  • User identification: The SDK requires a user key to evaluate targeting rules. This can be an anonymous auto-generated key (stored in a cookie or localStorage) or an identified user key provided by your application.

The SDK communicates with app.launchdarkly.com, events.launchdarkly.com, and clientstream.launchdarkly.com.

Consent & Compliance

Consent Category: Functional

LaunchDarkly's primary purpose is feature management, which is an operational concern rather than marketing or analytics. However, the consent classification depends on how it is configured:

  • Functional use (feature flags only): If the SDK is used purely for feature rollouts and operational toggles with anonymous user keys, it falls under functional/strictly necessary. The localStorage cache and anonymous key cookie support core application behavior.
  • Analytics/experimentation use: If LaunchDarkly is used for A/B testing with conversion tracking, click events, and pageview events, the experimentation data collection moves into analytics territory and may require consent.
  • GDPR consideration: If identified user attributes (email, name, plan) are sent as part of the user context, this constitutes personal data processing. LaunchDarkly acts as a data processor in this case.

Should You Block This Without Consent?

Conditional. If LaunchDarkly is used strictly for feature flags with anonymous user keys and no experimentation events, it can be classified as functional and does not require consent. If you are running A/B experiments with conversion tracking or passing identified user data, obtain analytics consent before initializing the SDK. Review your targeting rules and event configuration to determine which category applies to your implementation.

Visit website

Consent Categories

Functional

Also Known As

LaunchDarklyLaunchDarkly SDKfeature flagsfeature flaggingA/B testingLaunchDarkly JavaScript SDK

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (3)

app.launchdarkly.comFunctional
clientsdk.launchdarkly.comFunctional
events.launchdarkly.comFunctional

Frequently Asked Questions

Does LaunchDarkly require cookie consent?

Conditionally. If LaunchDarkly is used purely for feature flags with anonymous user keys and no experimentation events, it qualifies as functional and does not require consent. If used for A/B testing with conversion tracking or with identified user attributes such as email, analytics consent is required before SDK initialization.

What data does LaunchDarkly collect?

LaunchDarkly's JavaScript SDK sends a user context to app.launchdarkly.com to evaluate feature flags, which may include an anonymous auto-generated key or identified user attributes. It caches flag values in localStorage and sends evaluation counts and conversion events to events.launchdarkly.com. No persistent cookies are set for anonymous users.

How does ConsentStack handle LaunchDarkly?

ConsentStack classifies LaunchDarkly as functional by default. When used for feature flags with anonymous keys only, ConsentStack allows the SDK to initialize without consent. If your implementation passes identified user data or runs A/B experiments with conversion tracking, ConsentStack can gate SDK initialization on analytics consent instead.

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for LaunchDarkly

ConsentStack automatically detects and manages LaunchDarkly trackers so your site stays compliant with global privacy regulations.