The checkGateWithExposureLoggingDisabled
api will return a gate evaluation without logging an exposure event. This is useful when you don't want to log exposures for users who may not reach the feature you're testing, but need to know their evaluation sooner to set things up.
Later, when the user reaches the feature, calling checkGate
will return the same result and log an exposure event. Both checkGate
and checkGateWithExposureLoggingDisabled
will return the same result for a given user and gate.
Note that statsig sdks handle exposure logging by default because manual exposure logging can lead to an imbalance in exposure events. For example, only triggering exposures for users in the Test group of an experiment could imbalance the experiment.