Skip to content

Commit 691d625

Browse files
committed
fixup: additional details
Signed-off-by: Todd Baert <[email protected]>
1 parent ee902e3 commit 691d625

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

specification/sections/06-tracking.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ see: [dynamic-context paradigm](../glossary.md#dynamic-context-paradigm)
4040
client.track("visited-promo-page", evaluationContext);
4141

4242
// example tracking occurrence recording that a subject performed an action associated with a business goal, with the occurrence details having a particular numeric value
43-
client.track("clicked-checkout", evaluationContext, new OccurrenceDetails(99.77)): void;
43+
client.track("clicked-checkout", evaluationContext, new OccurrenceDetails(99.77));
44+
45+
// example tracking occurrence recording that a subject performed an action associated with a business goal, with the occurrence details having a particular numeric value
46+
client.track("clicked-checkout", evaluationContext, new OccurrenceDetails(99.77).add("currencyCode", "USD"));
4447
```
4548

4649
See [evaluation context](../types.md#evaluation-context), [occurrence details](#62-occurrence-details).
@@ -65,7 +68,10 @@ Though it may be associated with network activity or other I/O, it need not be a
6568
client.track("visited-promo-page");
6669

6770
// example tracking occurrence recording that a subject performed an action associated with a business goal, with the occurrence details having a particular numeric value
68-
client.track("clicked-checkout", new OccurrenceDetails(99.77)): void;
71+
client.track("clicked-checkout", new OccurrenceDetails(99.77));
72+
73+
// example tracking occurrence recording that a subject performed an action associated with a business goal, with the occurrence details having a particular numeric and some additional details
74+
client.track("clicked-checkout", new OccurrenceDetails(99.77).add("currencyCode", "USD"));
6975
```
7076

7177
#### Requirement 6.1.3

0 commit comments

Comments
 (0)