Skip to content

Commit 3b50442

Browse files
Paul YooPaul Yoo
authored andcommitted
changes
1 parent 14da1c8 commit 3b50442

File tree

1 file changed

+14
-12
lines changed
  • src/connections/destinations/catalog/launchdarkly-subscription

1 file changed

+14
-12
lines changed

src/connections/destinations/catalog/launchdarkly-subscription/index.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: LaunchDarkly-subscription Destination
2+
title: LaunchDarkly Events Destination
33
rewrite: true
44
---
55
LaunchDarkly is a feature management platform that empowers development teams to safely deliver and control software through feature flags.
@@ -21,13 +21,16 @@ This destination is maintained by LaunchDarkly. For any issues with the destinat
2121
## Track
2222
If you aren't familiar with the Segment Spec, take a look at the [Track method documentation](https://segment.com/docs/connections/spec/track/) to learn about what it does. An example call would look like:
2323

24-
```javascript
25-
analytics.track('Order Completed',
26-
{
27-
value: 99.84,
28-
type: "expedited"
29-
}
30-
)
24+
```json
25+
{
26+
"anonymousId": "23adfd82-aa0f-45a7-a756-24f2a7a4c8955",
27+
"type": "track",
28+
"properties": {
29+
"value": 99.84,
30+
},
31+
"userId": "test-user-s6dndc",
32+
"event": "Order Completed"
33+
}
3134
```
3235

3336
LaunchDarkly ingests that call as:
@@ -41,16 +44,15 @@ LaunchDarkly ingests that call as:
4144
"metricValue": 99.84,
4245
"data": {
4346
"value": 99.84,
44-
"type": "expedited"
4547
}
4648
}
4749
```
4850

51+
> note ""
52+
> **Note**: The LaunchDarkly Metric must be actively recording and have a Feature Flag attached for Segment events to appear in your LaunchDarkly Project.
53+
4954
Segment sends Track calls to LaunchDarkly as a `track` event. It appears on your [Debugger page](https://app.launchdarkly.com/default/production/debugger/goals).
5055

5156
`track` events map to a Metric if the Segment event name exactly matches the Name of an active LaunchDarkly experiment metric.
5257

5358
The `userKey` field maps to the `userId` field; if there is no `userId` field, LaunchDarkly uses `anonymousId` field for the `userKey` field.
54-
55-
> note ""
56-
> **Note**: The LaunchDarkly Metric must be actively recording and have a Feature Flag attached.

0 commit comments

Comments
 (0)