Hi, we’re coming over from Firebase Remote Config ...
# ask-questions
w
Hi, we’re coming over from Firebase Remote Config and I’m wondering if there is a way to run a test that affects multiple feature flags at once. So far it seems I can only create an experiment for a single feature key in GrowthBook, so the logic for more complex tests would need to be hardcoded in the code.
f
Hi Matouš - how would this work with multiple features exactly? So if there are two features, you want a user to be bucketed in A for both or B for both?
w
E.g., if we want to test pricing, I have
product_id_month
and
product_id_year
flags to define product ID for monthly and yearly subscription. I’d like to create an A/B test that would change the values of both keys at once, and test different price levels in multiple variants.
f
There are two ways to do this currently. The best way would be to use one flag for both, and either encode both flag behavours in the code, or use a flag of type json to pass down multiple values for month and year. You can do it with two feature flags as well, though you would have to create two matching experiment rules, and set the experiment key for each of the experiment rules to the same value, so that users will be bucketed the same in both. The results will be tracked as one experiment. (You’ll also have to keep the experiment splits the same for both rules, or risk strange results)
w
Got it, thanks for the clarification! I see that I can use the experiment key to link multiple experiments. It would still be great to be able to link multiple feature flags to a single experiment in the future. Btw, as the first time user having previous experience with Firebase A/B Testing, it was a bit counterintuitive that the experiment needs to be created from the features tab. I’d expect to create a new experiment and just link the relevant feature flags from there.
f
thanks for that feedback. We actually have a fix for that coming very soon
(where you start experiments)