Skip to content

Commit 839dd72

Browse files
committed
Document the advice about experiment exposure events
1 parent 6930254 commit 839dd72

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/EXPERIMENTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,13 @@ if ABTest.experimentName.variation == .control {
3838
// Treatment logic
3939
}
4040
```
41+
### Experiment Design Considerations
42+
43+
If your experiment uses an exposure event, watch out for race conditions between the exposure event and the test assignment or experiment metrics. The exposure event must be triggered _after_ the app receives the test assignment from the experiments endpoint, and _before_ any of the experiment metrics are triggered.
44+
45+
Due to potential race conditions, do not use these as exposure events:
46+
47+
- `woocommerceios_application_opened`
48+
- `woocommerceios_application_installed`
49+
50+
When designing a logged-out experiment, consider that you may not need an exposure event at all.

0 commit comments

Comments
 (0)