https://www.growthbook.io/ logo
#give-feedback
Title
# give-feedback
s

shy-businessperson-15375

06/07/2023, 5:02 PM
Howdy! I'm running into a small issue with running an experiment from when a user goes from unauthed to authed. What I want to happen is: 1. User lands on page unauthed and an id is assigned to them anonymously, experiment starts 2. User auths and I call
Copy code
growthBook.setAttributes({
        ...growthBook.getAttributes(),
        id: user.userId,
      })
3. The experiments do not start again and the anonymous ID is merged with the user's real ID from my system Current state the experiments are called again and it messes up my event analytics
a

able-raincoat-11721

06/07/2023, 5:21 PM
We had the same issue. We opted to cookie every visitor a unique id which we then set as the
deviceId
in attributes and used that attribute in our a/b test. But it means the same user can be in different variants if they use another device.
s

shy-businessperson-15375

06/07/2023, 6:44 PM
That's a good workaround. Idk if I feel like coding that though 😅 . We're using mixpanel for analysis and they have a
First time ever
filter which works for us, but it's a foot gun to explain the nuances of when you need it when doing cohort analysis
10 Views