Articles on: Best Practices

How do I identify an anonymous user? What about running AB tests with anonymous users?

In this case you should generate a GUID/hash for the user on your client side, cookie it, and use that to identify the user.

In terms of running tests against anonymous users, Flagsmith needs some sort of consistent ID that you store against the user on the client, otherwise it's impossible for us to serve a consistent test to that user. Generally people just create a random GUID and then store it on the client (e.g. using cookie on web) but it depends on your client implementation.

Updated on: 31/03/2021

Was this article helpful?

Share your feedback


Thank you!