Handling Non Logged-in Users
Non logged-in users (who have not been assigned a userId) can also be registered with CustomerGlu and allowed to play games, by providing another unique identifier called anonymousId, essentially making either of userId/anonymousId required.
Any "unique-enough" property like sessionId, deviceId, uuid etc. can be used as the anonymousId for a non logged-in user.
When the userId for a user is assigned/available at a later point of time, the mapping can be informed to CustomerGlu by passing both- userId and anonymousId together in one call.
The above method of passing "anonymousId" works with all the different methods of user/device registration:
  • API: Adding in the request payload
  • SDK: Adding in the function parameter, at the same level as userId
  • Standalone URL: Adding as a url parameter.
Copy link