Skip to content

Commit 9c1647f

Browse files
chore: clarify that "goals" are the same as "metrics" (#244)
We got feedback from a customer that they were confused by the "goals" language in our SDK docs, which we now call "metrics." This clarifies that goals = metrics and A/B testing = Experimentation. Story details: https://app.shortcut.com/launchdarkly/story/213100
2 parents 36eb906 + 2eaf109 commit 9c1647f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/shared/sdk-server/src/api/LDClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,17 @@ export interface LDClient {
178178
/**
179179
* Tracks that a context performed an event.
180180
*
181-
* LaunchDarkly automatically tracks pageviews and clicks that are specified in the Goals section
182-
* of the dashboard. This can be used to track custom goals or other events that do not currently
183-
* have goals.
181+
* LaunchDarkly automatically tracks pageviews and clicks that are specified in the Metrics section
182+
* of the dashboard. This can be used to track custom metrics (goals) or other events that do not currently
183+
* have metrics.
184184
*
185185
* Note that event delivery is asynchronous, so the event may not actually be sent until later;
186186
* see {@link flush}.
187187
*
188188
* If the context is omitted or has no key, the client will log a warning and will not send an
189189
* event.
190190
*
191-
* @param key The name of the event, which may correspond to a goal in A/B tests.
191+
* @param key The name of the event, which may correspond to a metric in Experimentation.
192192
* @param context The context to track.
193193
* @param data Optional additional information to associate with the event.
194194
* @param metricValue A numeric value used by the LaunchDarkly experimentation feature in numeric

0 commit comments

Comments
 (0)