https://www.growthbook.io/ logo
#announcements
Title
# announcements
h

hallowed-portugal-31753

08/03/2022, 3:53 AM
hello, I've a question, I just looked at growthbook SDK and realized the tracking callback only happens in an experiment, not on a feature. If I've defined a feature in growthbook UI, and want to use it, should I be using experiment in my code instead of feature?
f

fresh-football-47124

08/03/2022, 3:54 AM
if you want to track the feature as an A/B test, you would create an experiment rule on that feature
h

hallowed-portugal-31753

08/03/2022, 3:55 AM
but the SDK doesn't send the data on tracking callback, how would that work?
f

fresh-football-47124

08/03/2022, 3:55 AM
the trackingCallback will be called when a feature has an experiment rule
h

hallowed-portugal-31753

08/03/2022, 3:55 AM
hmm 🤔 let me check the code again 🙂
thanks, changing the forced rule to an experiment rule starts giving me a callback 🙂
f

fresh-football-47124

08/03/2022, 4:08 AM
👍
15 Views