Hi I see the UI can add multiple experiments for one feature on feature setting page. But growthbook constructor trackingCallback: (experiment, result) only picks up the first experiment and its experiment data. How can one feature see multiple experiment data and results?
f
future-teacher-7046
06/23/2022, 9:34 PM
The trackingCallback only fires once per unique tracking key. So if you specify different tracking keys for the experiment rules in the UI it should fire twice
e
elegant-judge-12667
06/23/2022, 9:44 PM
Hi I added a different tracking key for the additional experiment on the feature but the growthbook's trackingCallback still only calls the first experiment. I see the signature "trackingCallback? (experiment: Experiment<any>, result: Result<any>) => void; " it seems the parameter only for one experiment?
f
future-teacher-7046
06/23/2022, 9:46 PM
oh, I think I misunderstood your original question. When figuring out the value of a feature, we step through each rule and the first one that matches gets used. So once a user gets put into an experiment, they skip all of the rest of the rules
we only fire a tracking callback for the one experiment rule that was used to assign the value.
e
elegant-judge-12667
06/23/2022, 9:51 PM
Jeremy, Thank you. Is it possible to have measure experiments based on different metrics for a feature ?
f
future-teacher-7046
06/23/2022, 9:54 PM
yes, you can add as many metrics as you want when analyzing experiment results