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.
| Field | Type | Required | Description |
|---|---|---|---|
| — | — | — | 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.
| Field | Type | Required | Description |
|---|---|---|---|
end_reason | string | No | "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"
}));
| Field | Type | Required | Description |
|---|---|---|---|
player_id | string | No | The authenticated player's identity |
method | string | No | Authentication method (email, google, apple, guest) |
logout
Sent when the player signs out.
GameRebellion.TrackEvent("logout", "{}");