For logged-in user experiments, calling Experiment#logExposure() in PHP right before calling Experiment#isAssignedGroup() in the same server-side execution context is straightforward.
For privacy reasons, all-user-traffic experiments – which use edge uniques for enrollment – can only use the JS SDK for data collection. An experiment which uses the PHP SDK for feature toggling needs a way of triggering exposure logging on the client side.
We need a way to log experiment's exposure on the client-side such that there are no false positives (logging exposure when there was no exposure) or false negatives (not logging exposure when there was exposure).
Acceptance criteria
- A way to trigger Experiment#logExposure() client-side from server-side using some mechanism