https://www.growthbook.io/ logo
#announcements
Title
# announcements
b

big-article-38157

07/11/2023, 9:06 AM
Hi! I have a pretty annoying issue (nothing to do with GrowthBook) but could do with some advice. We want to run tests with an anonymous identifier on our homepage. Initially the plan was to use the pseudo id from Google Analytics. This works great if the user has the _ga cookie in their browser already because we set the attribute in GrowthBook on load and then the SDK does the rest. The problem comes when we have a user that doesn’t have the _ga cookie yet (new user to the site). I try to set the attributes on GrowthBook straight away but the cookie isn’t there until about a second after the page loads. I could wait for the cookie but then the experiment would flicker for new users on the homepage. Has anyone had to deal with a similar thing before and were there any solutions besides having the flicker or generating our own anonymous id for all users!
f

fresh-football-47124

07/11/2023, 9:21 AM
this is a problem with new users
you can set your own identifier to prevent this, and log it to GA or your data warehouse.
b

big-article-38157

07/11/2023, 2:27 PM
Thank you!!
15 Views