what is the difference between assignment and expo...
# announcements
b
what is the difference between assignment and exposure? Which of the two is the trackingCallback sending? I'm confused when reading the documentation
h
Hey Andrea, sorry about the confusion. I think they're probably interchangeable in much of the documentation, but I'd be happy to see where our docs were confusing to try to clean them up. In my mind, an
exposure
should be the point at which your app is aware of a user's experiment
assignment
, and we should fire an
exposure  event
any time you look up a user's
assignment
. Firing this
exposure event
is what
trackingCallback
should do. But at the end of the day, a user being
assigned
to a variant is the same as them being
exposed
to a variant, so we could probably be more consistent in the documentation. In our SDKs, any time you look up an assignment using, for example,
isOn
or
getFeatureValue
, we should fire a
trackingCallback
before returning the result so that looking up a user's
assignment
always coincides with us firing an
exposure event
.
b
thanks it's much clearer now.
👍 1