I do have the exact problem, it’s not triggering the
trackingCallback
for certain variation
b
better-magician-65629
03/21/2023, 9:58 PM
the tracking callback is only called if the user is in the experiment.
it will not get called in the following cases:
• a forced value is provided
•
experiment.active
is not
true
• if there's no hash attribute to help evaluate the experiment (e.g. the custom-provided hash attribute or the fallback
id
on the user attributes)
• if the conditions checked evaluate to false
• if QA mode is true
• the experiment has already been tracked, i.e. the tracking callback has already been called once for this experiment. (keeping track of tracked experiments is not supported in all SDK's currently)
In the build-your-own section of the SDK docs, there's a section about implementing the experiment run and when the callback is fired. that should hopefully help clear up any confusion.