跳至主要内容

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

ResourceChange
create_orderOptional experiments array accepted, up to 20 entries of experiment_key and variant_key
get_order, update_orderexperiments returned on the order

Upgrade

  • No action required. Orders created without experiments are 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.

需要技术支持?
联系我们的集成技术团队: [email protected]