We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658455e commit 6092e2cCopy full SHA for 6092e2c
README.md
@@ -126,6 +126,21 @@ This is essential for robust experimentation powered by feature flags. Note that
126
that handle feature flag evaluations, calling `track(...)` may throw an `IllegalArgumentException`
127
if an empty string is passed as the `trackingEventName`.
128
129
+Below is an example of how we can track a "Checkout" event with some `TrackingDetails`.
130
+
131
+```kotlin
132
+OpenFeatureAPI.getClient().track(
133
+ "Checkout",
134
+ TrackingEventDetails(
135
+ 499.99,
136
+ ImmutableStructure(
137
+ "numberOfItems" to Value.Integer(4),
138
+ "timeInCheckout" to Value.String("PT3M20S")
139
+ )
140
141
+)
142
+```
143
144
Tracking is optionally implemented by Providers.
145
146
0 commit comments