Set a custom user id
In case your game has a way to authenticate the user, by for example using Facebook, please make sure to set the “Custom user id” with the facebook id, or your own global user id.
Once the id and provider have been set, they will be sent along with each event. The Spil SDK also still uses itâs own generated guest user id. In order to configure the Custom User ID and Provider call the following functions: