A/B test assignments on orders
What's new
Orders carry an optional experiments array that records which A/B tests the player was in when the order was created. Each entry is an Experiment object with two required strings, experiment_key and variant_key, each 1–100 characters. A create request may send up to 20 assignments.
Impact
Attribution for your own experiments now travels with the order. Send the assignments your experimentation tool handed the client, and they come back on every order read, so revenue can be split by variant without joining orders to an external assignment log.
Changes
| Resource | Change |
|---|---|
| create_order | Optional experiments array accepted, up to 20 entries of experiment_key and variant_key |
| get_order, update_order | experiments returned on the order |
Upgrade
- No action required. Orders created without
experimentsare unchanged. - To use it, pass the keys exactly as your experimentation tool reports them — Aghanim stores them verbatim and does not validate them against a list of known experiments.
Need help?
Contact our integration team at [email protected]