Frequently Asked Questions

A curated summary of the top questions asked on our Slack community, often relating to implementation, functionality, and building better products generally.
Statsig FAQs
Microsoft OpenAI ea Notion Univision affirm Made beyond kickstarter personio UrbanSportsClub Rappi
GENERAL

How can I fetch experiment metadata and perform checks without logging an exposure in Statsig?

Date of slack thread: 5/8/24

Anonymous: I have a use case where I want to fetch metadata related to an experiment and do some checks before getting the experiment, is the best way to do this by getting experiment with exposure logging disabled in the options?

Tyler (Engineer - Statsig): Yeah - if you need to know the user’s enrollment status without having it count as them being in the experiment - checkWithExposureLoggingDisabled is the way to go.

Will add a few caveats here though: You’ll still want to make sure that you’re being “fair” in exposing users to the experiment. That is to say - if the experiment treatment causes you to potentially not expose the user (i.e. user A would get exposed if they were control, but I don’t expose them if they are in test for some reason about user A), you’ll pretty quickly introduce Sample Ratio Mismatch (SRM). This can also arise in slightly more subtle ways - e.g. if it takes me an extra 10 seconds to expose test users vs. control users, and some percentage of users leave after 8 seconds - I’m going to have imbalance there as well.

We have a healthcheck on the experiment that will let you know if you are experiencing SRM - but if you’re manually exposing we’re pretty likely to point to that as the likely culprit.

Tyler (Engineer - Statsig): Oh - implied above - but you will want to still expose the user without exposureLoggingDisabled (i.e. a normal exposure) at some point as well to make sure we actually know they do get exposed eventually so we can run analytics on them.

Anonymous: gotcha thanks for replying Tyler! For more context what im trying to do is check if the user has the ID Type being used by the experiment (some users dont apply to the experiment in that case), If the user does not have the ID type then not exposing them to the experiment.

Tyler (Engineer - Statsig): Ah - perfect! No SRM concerns there then. I’ll also flag we exclude {unitId: “”} from the analysis - but will still give them one of the treatments - as what the out-of-the-box behavior there is for that scenario.

Join the #1 experimentation community

Connect with like-minded product leaders, data scientists, and engineers to share the latest in product experimentation.

Try Statsig Today

Get started for free. Add your whole team!

Why the best build with us

OpenAI OpenAI
Brex Brex
Notion Notion
SoundCloud SoundCloud
Ancestry Ancestry
At OpenAI, we want to iterate as fast as possible. Statsig enables us to grow, scale, and learn efficiently. Integrating experimentation with product analytics and feature flagging has been crucial for quickly understanding and addressing our users' top priorities.
OpenAI
Dave Cummings
Engineering Manager, ChatGPT
Brex's mission is to help businesses move fast. Statsig is now helping our engineers move fast. It has been a game changer to automate the manual lift typical to running experiments and has helped product teams ship the right features to their users quickly.
Brex
Karandeep Anand
President
At Notion, we're continuously learning what our users value and want every team to run experiments to learn more. It’s also critical to maintain speed as a habit. Statsig's experimentation platform enables both this speed and learning for us.
Notion
Mengying Li
Data Science Manager
We evaluated Optimizely, LaunchDarkly, Split, and Eppo, but ultimately selected Statsig due to its comprehensive end-to-end integration. We wanted a complete solution rather than a partial one, including everything from the stats engine to data ingestion.
SoundCloud
Don Browning
SVP, Data & Platform Engineering
We only had so many analysts. Statsig provided the necessary tools to remove the bottleneck. I know that we are able to impact our key business metrics in a positive way with Statsig. We are definitely heading in the right direction with Statsig.
Ancestry
Partha Sarathi
Director of Engineering
We use cookies to ensure you get the best experience on our website.
Privacy Policy