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

red-mouse-1009

03/20/2023, 7:04 AM
Hi , When exactly does tracking callback function run ? In the javascript implementation. Is there any chance that it doesn’t run ? @fresh-football-47124
f

fresh-football-47124

03/20/2023, 7:05 AM
The trackingCallback will only run when a user has been placed into an experiment
There are a few ways that it may not fire - your experiment is not correctly setup in the UI (ie, you have a rule above it that takes priority), or you have an implementation error, which is typically from either a mis-matched split attribute (eg, in the UI you are splitting by ‘userId’ and in the code you’re setting the attribute ‘user_id’), or the split attribute is not set.
9 Views