Skip to content

Commit 4f57f47

Browse files
authored
Merge pull request #8041 from woocommerce/issue/8004-logged-in-aa-test-followup
Experiments: Update documentation and remove logged-in A/A test
2 parents c203f0f + b438fd2 commit 4f57f47

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Experiments/Experiments/ABTest.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ public enum ABTest: String, CaseIterable {
77
/// `An enum with no cases cannot declare a raw type`
88
case null
99

10-
/// A/A test for ExPlat integration in the logged in state.
11-
/// Experiment ref: pbxNRc-1QS-p2
12-
///
13-
case aaTestLoggedIn202210 = "woocommerceios_explat_aa_test_logged_in_202210"
14-
1510
/// A/A test to make sure there is no bias in the logged out state.
1611
/// Experiment ref: pbxNRc-1S0-p2
1712
case aaTestLoggedOut = "woocommerceios_explat_aa_test_logged_out_202211"
@@ -39,7 +34,7 @@ public enum ABTest: String, CaseIterable {
3934
/// When adding a new experiment, add it to the appropriate case depending on its context (logged-in or logged-out experience).
4035
public var context: ExperimentContext {
4136
switch self {
42-
case .aaTestLoggedIn202210, .productsOnboardingBanner, .productsOnboardingTemplateProducts:
37+
case .productsOnboardingBanner, .productsOnboardingTemplateProducts:
4338
return .loggedIn
4439
case .aaTestLoggedOut, .abTestLoginWithWPComOnly:
4540
return .loggedOut

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)