Hi all, i have a usecase, please let me know if an...
# ask-questions
s
Hi all, i have a usecase, please let me know if anyone has a solution - I have before login anonymous id of a user. If the user is coming again but this time through login and we have the user id, anyway through which i can assign this user id the same bucket assigned to the anonymous id ? Any way to achieve this through code ? FYI, i am using java and don’t see support for sticky bucketing there.
f
Hi
you can set both the anon id and user id as two separate attributes
for targeting both anon and then later user id - just target to the anon id - so your experiments would be split by anon id
this will ensure that the user gets a consistent experience both sides of the login wall
s
Hey @fresh-football-47124 The idea is anonymous id can change in our case. Is there a way to assign user id to same anonymous id cohort ? so that later user id can be used to get the cohort