Skip to content

Commit 5c31b4d

Browse files
committed
playtime metrics
1 parent a108303 commit 5c31b4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/gameanalytics/GAState.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ namespace gameanalytics
426426
out["session_num"] = getInstance()._sessionNum;
427427
out["connection_type"] = device::GADevice::getConnectionType();
428428

429+
// playtime metrics
430+
out["current_session_length"] = getInstance().calculateSessionLength();
431+
out["lifetime_session_length"] = getInstance().getTotalSessionLength();
432+
429433
// ---- OPTIONAL ---- //
430434

431435
// A/B testing

0 commit comments

Comments
 (0)