Skip to content

Commit a1f1ef2

Browse files
authored
Merge pull request #1052 from segmentio/launchdarkly-subscription-docs
Launchdarkly subscription docs
2 parents e218ee0 + 7338ad3 commit a1f1ef2

File tree

5 files changed

+124
-11
lines changed

5 files changed

+124
-11
lines changed

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# destination categories last updated 2020-08-11
2+
# destination categories last updated 2020-08-12
33
items:
44
- display_name: Email Marketing
55
slug: email-marketing

src/_data/catalog/destinations.yml

Lines changed: 63 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# destination data last updated 2020-08-11
2+
# destination data last updated 2020-08-12
33
items:
44
- display_name: ActiveCampaign
55
slug: activecampaign
@@ -11919,6 +11919,61 @@ items:
1191911919
server: true
1192011920
previous_names:
1192111921
- Kustomer
11922+
- display_name: LaunchDarkly-subscription
11923+
slug: launchdarkly-subscription
11924+
name: catalog/destinations/launchdarkly-subscription
11925+
description: >-
11926+
This destination sends track events to LaunchDarkly experiments.
11927+
LaunchDarkly is a feature management platform that empowers development
11928+
teams to safely deliver and control software through feature flags.
11929+
hidden: false
11930+
url: connections/destinations/catalog/launchdarkly-subscription
11931+
status: PUBLIC_BETA
11932+
logo:
11933+
url: >-
11934+
https://public-segment-devcenter-production.s3.amazonaws.com/9d3b780d-d6a6-413d-b606-49ce7b9af1a9.svg
11935+
mark:
11936+
url: >-
11937+
https://public-segment-devcenter-production.s3.amazonaws.com/e15902da-fbab-4789-82a0-09da26f51d8a.svg
11938+
categories:
11939+
- A/B Testing
11940+
- Analytics
11941+
components: []
11942+
platforms:
11943+
browser: true
11944+
server: true
11945+
mobile: true
11946+
browserUnbundlingSupported: false
11947+
browserUnbundlingPublic: false
11948+
methods:
11949+
alias: false
11950+
group: false
11951+
identify: false
11952+
page_view: false
11953+
track: true
11954+
settings:
11955+
- name: apiKey
11956+
display_name: API Key
11957+
type: STRING
11958+
deprecated: false
11959+
required: true
11960+
string_validators:
11961+
regexp: '^.{8,}$'
11962+
description: >-
11963+
Generate a token in the Authorization tab in LaunchDarkly Account
11964+
Settings.
11965+
settings: []
11966+
connection_modes:
11967+
device:
11968+
web: false
11969+
mobile: false
11970+
server: false
11971+
cloud:
11972+
web: false
11973+
mobile: false
11974+
server: false
11975+
previous_names:
11976+
- LaunchDarkly-subscription
1192211977
- display_name: Lazy Lantern
1192311978
slug: lazy-lantern
1192411979
name: catalog/destinations/lazy-lantern
@@ -17044,6 +17099,13 @@ items:
1704417099
required: false
1704517100
description: Map your Segment properties to Responsys Columns
1704617101
settings:
17102+
- name: primaryKey
17103+
display_name: Set as Primary Key
17104+
type: BOOLEAN
17105+
deprecated: false
17106+
required: false
17107+
description: Mark this property as a Primary Key in Responsys.
17108+
settings: []
1704717109
- name: columns
1704817110
display_name: Segment Property Name
1704917111
type: STRING
@@ -17079,13 +17141,6 @@ items:
1707917141
- TIMESTAMP
1708017142
description: Enter the Responsys column type.
1708117143
settings: []
17082-
- name: primaryKey
17083-
display_name: Set as Primary Key
17084-
type: BOOLEAN
17085-
deprecated: false
17086-
required: false
17087-
description: Mark this property as a Primary Key in Responsys.
17088-
settings: []
1708917144
- name: mapEmail
1709017145
display_name: Map Email
1709117146
type: BOOLEAN

src/_data/catalog/source_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# source cateogries last updated 2020-08-11
2+
# source cateogries last updated 2020-08-12
33
items:
44
- display_name: Server
55
slug: server

src/_data/catalog/sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# sources last updated 2020-08-11
2+
# sources last updated 2020-08-12
33
items:
44
- display_name: .NET
55
slug: net
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: LaunchDarkly Events Destination
3+
rewrite: true
4+
---
5+
LaunchDarkly is a feature management platform that empowers development teams to safely deliver and control software through feature flags.
6+
7+
LaunchDarkly users can run experiments on any feature flag, with custom events as metrics. You can look for an existing custom event from Segment, and start recording data against it as a metric in your LaunchDarkly experiment.
8+
9+
This destination is maintained by LaunchDarkly. For any issues with the destination, [contact the LaunchDarkly support team](mailto:[email protected]).
10+
11+
## Getting Started
12+
13+
{% include content/connection-modes.md %}
14+
15+
1. From the Destinations catalog page in the Segment App, click **Add Destination**.
16+
2. Search for “LaunchDarkly” in the Destinations Catalog, and select the LaunchDarkly destination.
17+
3. Choose which Source should send data to the LaunchDarkly destination.
18+
4. Go to the LaunchDarkly [Account Settings](https://app.launchdarkly.com/settings/projects), and find and copy the client-side ID from your default project.
19+
5. Enter this ID as the **API Key** in the “LaunchDarkly” destination settings in Segment.
20+
21+
## Track
22+
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:
23+
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+
}
34+
```
35+
36+
LaunchDarkly ingests that call as:
37+
38+
```json
39+
{
40+
"kind": "custom",
41+
"key": "Order Completed",
42+
"userKey": "userId",
43+
"creationDate": 1592588370692,
44+
"metricValue": 99.84,
45+
"data": {
46+
"value": 99.84,
47+
}
48+
}
49+
```
50+
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+
54+
Segment sends Track calls to LaunchDarkly as a `track` event. It appears on your [Debugger page](https://app.launchdarkly.com/default/production/debugger/goals).
55+
56+
`track` events map to a Metric if the Segment event name exactly matches the Name of an active LaunchDarkly experiment metric.
57+
58+
The `userKey` field maps to the `userId` field; if there is no `userId` field, LaunchDarkly uses `anonymousId` field for the `userKey` field.

0 commit comments

Comments
 (0)