https://www.growthbook.io/ logo
f

fresh-yacht-99561

05/13/2022, 3:01 PM
@future-teacher-7046 Another question for you. Is it possible to track if a user is in multiple experiments? We are using the trackingCallback implementation with Segment shown in the React SDK docs. But when I look at the Segment events for a user who is in multiple experiments, I only see the experiment key for the first experiment they’re in.
f

future-teacher-7046

05/13/2022, 3:03 PM
It should fire the tracking callback multiple times, one for each experiment. Have you installed our Chrome devtools extension? https://chrome.google.com/webstore/detail/growthbook-devtools/opemhndcehfgipokneipaafbglcecjia You can inspect each feature and see detailed logs about what rule it's using and why a value was assigned. My guess is that you aren't actually being included in one of the experiments.
👀 1
f

fresh-yacht-99561

05/13/2022, 3:06 PM
Hmm okay. The user is definitely in this experiment because they’re being shown a screen that is only accessible to users in the experiment but the key I’m seeing is related to another unrelated experiment.
I do see the callback fire more than once in some cases but the key is always for the first experiment
I am also logging the experiment and result in the trackingCallback and I only see information for the first experiment
f

future-teacher-7046

05/13/2022, 3:10 PM
Can you send me the JSON of the feature definitions?
f

fresh-yacht-99561

05/13/2022, 3:12 PM
This one is a simple on/off
At least the one that I’m not seeing tracking data for
The one that I am seeing the tracking info for is this:
Copy code
{
  "treatment": "video_carousel",
  "source": {
    "16x9": null,
    "19x9": null
  }
}
Oh wait I think I see what it is. It doesn’t seem like tracking is fired for users in a force rule?
f

future-teacher-7046

05/13/2022, 3:21 PM
yes, it only fires if a user is in an experiment and randomly placed in one of the variations
f

fresh-yacht-99561

05/13/2022, 3:22 PM
Got it - that makes sense! That should work for us but I was just trying to test and view tracking for a specific test user.
4 Views