You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/cloud-apps/configcat/index.md
+41-9Lines changed: 41 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,52 +12,84 @@ This source is maintained by ConfigCat. For any issues with the source, [contact
12
12
13
13
1. From your workspace's [Sources catalog page](https://app.segment.com/goto-my-workspace/sources/catalog){:target="_blank”} click **Add Source**.
14
14
2. Search for "ConfigCat" in the Sources Catalog, select ConfigCat, and click **Add Source**.
15
-
3. On the next screen, give the Source a name configure any other settings.
15
+
3. On the next screen, give the Source a name.
16
16
17
17
- The name is used as a label in the Segment app, and Segment creates a related schema name in your warehouse. The name can be anything, but we recommend using something that reflects the source itself and distinguishes amongst your environments (eg. ConfigCat_Prod, ConfigCat_Staging, ConfigCat_Dev).
18
18
19
19
4. Click **Add Source** to save your settings.
20
20
5. Copy the Write key from the Segment UI.
21
-
6. Log in to the ConfigCat Dashboard and copy the SDK Key for your Config in the specific Environment.
22
-
7. In your application's code **Configure SDKs:**:
21
+
22
+
### Sending feature flag change events from ConfigCat to Twilio Segment
23
+
24
+
1. Open the [integrations tab](https://app.configcat.com/product/integrations){:target="_blank”} on the ConfigCat Dashboard.
25
+
2. Click on Twilio Segment's CONNECT button and set the Twilio Segment Write Key acquired while adding the ConfigCat source in Segment.
26
+
3. OPTIONAL - Set the proper server of your Twilio Segment account.
27
+
4. You're all set. Go ahead and make some changes on your feature flags then check your events in Twilio Segment.
28
+
29
+
### Sending feature flag evaluation analytics from ConfigCat to Twilio Segment
30
+
31
+
1. Log in to the ConfigCat Dashboard and copy the SDK Key for your Config in the specific Environment.
32
+
2. In your application's code **Configure SDKs:**:
23
33
-**ConfigCat SDK:** Initialize with your ConfigCat SDK key.
24
-
-**Segment SDK:** Set up with the Segment write token acquired while adding the ConfigCat source in Segment.
25
-
8.**Integrate Feature Flag Evaluations:**
34
+
-**Segment SDK:** Set up with the Segment Write Key acquired while adding the ConfigCat source in Segment.
35
+
3.**Integrate Feature Flag Evaluations:**
26
36
- During the initialization of the ConfigCat SDK, subscribe to the `flagEvaluated` hook.
27
37
- Send feature flag evaluation data to Segment using the `featureFlagEvaluated` event name. Include the following parameter:
28
38
-`featureFlagKey`: the feature flag's key
29
39
-`value`: the evaluated feature flag's value or Variation ID
30
40
-`variationId` (optional): the evaluated feature flag's Variation ID
31
41
-`userId` (optional): the user object's identifier used during feature flag evaluation
32
42
-`user` (optional): the user object used during feature flag evaluation.
33
-
9. You can find code samples in the [ConfigCat Segment Source documentation](https://configcat.com/docs/integrations/segment?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target="_blank”}.
43
+
4. You can find code samples in the [ConfigCat Segment Source documentation](https://configcat.com/docs/integrations/segment#analytics?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target="_blank”}.
34
44
35
45
## Stream
36
46
37
47
ConfigCat uses our stream Source component to send Segment event data. It uses a `track` method to send data to Segment. These events are then available in any destination that accepts events, and available in a schema in your data warehouse, so you can query using SQL.
38
48
39
-
The default behavior is for ConfigCat to pass the user object's identifier propery used during the feature flag evaluation as the userId.
49
+
The default behavior is for ConfigCat to pass the user object's identifier property used during the feature flag evaluation as the userId or sending the ConfigCat User's ID who made the changes as the userId.
40
50
41
51
## Events
42
52
43
-
The table below lists events that <integration_name> sends to Segment. These events appear as tables in your warehouse, and as regular events in other Destinations. <integration_name> includes the `userId` if available.
53
+
The table below lists events that ConfigCat sends to Segment. These events appear as tables in your warehouse, and as regular events in other Destinations. ConfigCat includes the `userId` if available.
44
54
45
55
| Event Name | Description |
46
56
| ------------------ | ---------------------- |
47
57
| featureFlagEvaluated | Feature flag evaluated |
58
+
| featureFlagChanged | Feature flag changed |
48
59
49
60
## Event Properties
50
61
51
62
The table below list the properties included in the events listed above.
0 commit comments