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

straight-waiter-31879

08/06/2023, 5:45 PM
Hello, I'm having an issue with the growthBookTrackingCallBack not getting called (in Flutter). This callback is supposed to get triggered whenever the user enters an experiment via the 'feature().on' method, correct? Or is there another way to let the user enter into an experiment?
f

fresh-football-47124

08/06/2023, 6:25 PM
Yes, that is correct
What rules do you have on the feature?
s

straight-waiter-31879

08/06/2023, 6:27 PM
Just a very basic 50-50 split
The feature().on call also gets triggered without issues (although it always returns the default value, which made me think that I'd have to activate the experiment somehow)
f

fresh-football-47124

08/06/2023, 6:40 PM
Are you setting the id attribute?
s

straight-waiter-31879

08/06/2023, 6:41 PM
no, is that supposed to be in the attributes array?
Alright, that was it!
Thanks for the help, the event got triggered and I'm in the 2nd variant
f

fresh-football-47124

08/06/2023, 6:47 PM
Nice- yes, the attributes you have in the GrowthBook UI need to match what you pass to the SDK
👍 1
s

straight-waiter-31879

08/06/2023, 6:48 PM
I think it would be very helpful to have a tutorial on YouTube on how the whole system connects on both sides
There is a lot of content about Growthbook itself, but not about the ins and outs of the SDKs, even if it was just in JS, a dev can easily understand it and use the knowledge for the other SDKs
2 Views