Skip to main content
This topic explains how to configure your SDK to send qualitative feedback to LaunchDarkly. Each piece of qualitative feedback is associated with a specific flag variation, creating a direct connection between user sentiment and feature performance. This lets you quickly identify which features resonate with users, understand pain points in real-time, and adjust flag configurations based on actual user feedback, rather than assumptions. This feature is available with the JavaScript SDK.
The user feedback tab for a flag.

The user feedback tab for a flag.

Collecting qualitative user feedback requires two steps:
  • Configuring the JavaScript SDK
  • Creating a feedback widget

Configure the JavaScript SDK

If you use LaunchDarkly observability features, you can optionally tie the feedback to an observability session ID. This lets you use session replay to view what the user was doing in your app before they left their feedback. To use session replay, you must install the LaunchDarkly observability SDK.To configure the JavaScript SDK to send feedback to LaunchDarkly, including session replay:
If you do not use LaunchDarkly observability features, you can collect user feedback without session replay. Here’s how:

Create a feedback widget

Next, you need to create a feedback widget for your application to collect user feedback. We provide a basic React sample here, but your component can be customized and styled as needed. Here is an example React component: