Skip to main content

Session Events

Session events track player presence and authentication. session_start and session_stop are sent automatically when AutoTrackSession is enabled.


session_start

Sent when the SDK initializes or the app resumes from background.

FieldTypeRequiredDescription
No payload fields — the envelope (device_id, player_id, timestamp) is sufficient

Automatic: Yes (when AutoTrackSession is enabled)

session_stop

Sent when the app backgrounds or the player quits.

FieldTypeRequiredDescription
end_reasonstringNo"user_quit", "background", "crash", "timeout"

Automatic: Yes

login

Sent when the player authenticates.

GameRebellion.TrackEvent("login", JsonUtility.ToJson(new {
player_id = "player-12345",
method = "email"
}));
FieldTypeRequiredDescription
player_idstringNoThe authenticated player's identity
methodstringNoAuthentication method (email, google, apple, guest)

logout

Sent when the player signs out.

GameRebellion.TrackEvent("logout", "{}");