Search Unity

Computing Session Length from Raw Data

Discussion in 'Unity Analytics' started by ferretnt, Nov 21, 2017.

  1. ferretnt

    ferretnt

    Joined:
    Apr 10, 2012
    Posts:
    412
    I want to compute session length from our raw data exports - similar to what the Unity Dashboards report for "Total Daily Play Time Per Active User", but computed on our end (via BigQuery) so we can histogram it.

    We want to match what the analytics dashboard is doing for calculation to avoid discrepancies. Can you explain which fields of which exports the users "Total Daily Play Time Per Active User" is computed from? Obviously every event has a timestamp (but this doesn't allow us to tell when they were/weren't using the app in between timestamps.) AppRunning has a "duration" parameter, but there doesn't seem to be any documentation on when/how AppRunning events are sent, and if we can assume one is sent when the app is killed / sent to background etc.

    Any advice on how to replicate this calculation would be appreciated.
     
  2. ferretnt

    ferretnt

    Joined:
    Apr 10, 2012
    Posts:
    412