Use this method to set up a session token into the client to track events:
client.setSession(sessionToken: String);
sessionToken
is the identifier for a session user.
client.generateSession()
.then(function(response) {
client.setSession(response.sessionToken);
});