hey all - is there a way, based on a user_id, to d...
# ask-questions
k
hey all - is there a way, based on a user_id, to determine which variant of a test they will receive? We have a GA integration on web and events but we don't have these working on our mobile apps yet. I'm hoping to see which version someone should be getting based on their user id. Alternatively is there a way to get the list of who was served what from the growthbook interfaces?
Ok look like the answer is in the hash function here. https://github.com/growthbook/growthbook/blob/cd49c295bbb493642065eb3bbf22f7e89c9936ac/packages/sdk-js/src/util.ts#L30 I was able to debug the client side and see it working. Trying to figure out how the seed is derived now but I'm guessing it's in the Growthbook interface and the guid for that test...
s
Hi. It looks like you figured it out mostly, but the hashing is based on the user id and experiment id. In GrowthBook, if you implemented the experiment via a feature flag, you can use the Simulate tab to see how an experiment will be assigned.
k
So the seed ID is the experiment ID - is that just a uuid? Is it derivative as well or or do I need to get that value from the Growthbook UI?
Just wondering if there is a way to log it to GA as well alongside the experiment name - would make it easier to build a lookup table