Hi GrowthBook team, Could you also explain when th...
# experimentation
c
Hi GrowthBook team, Could you also explain when the
Copy code
trackingCallback
method should be call, because it's no clear from documentation
a
Hello, the tracking callback should be called when experiment is run. The second argument of tracking callback is a result of the experiment
🙌 1
c
@ancient-car-96302 What does "experiment is run"? When do we simply run the experiment in the GrowthBook? or when a person reaches a place in the code where
useFeatureIsOn
is called and the experiment is launched
a
when a person reaches a place in the code where
feature()
is called and the experiment is launched, when #evaluateExperiment() is called tracking callback is triggered in the end of it
🙌 1
c
Thank you @ancient-car-96302!
🤝 1
f
just to clarify some of the language, the trackingCallback is called when an experiment is assigned, but you don't (well, shouldn't) call the method yourself
👍 1