Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Analytics timestamp issues

Discussion in 'Unity Analytics' started by aitor-prado, Oct 9, 2018.

  1. aitor-prado

    aitor-prado

    Joined:
    Jan 27, 2017
    Posts:
    2
    Hi,

    I'm having issues with analytics timestamps:
    TimestampIssues.png
    In this example you can see the player traveling 4 days to the past between levels 47 and 48... how can this be possible?

    Cheers,
    Aitor

    PS: The game was done using Unity 5.5.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    2,758
    These are logs from about a year ago? The user may have changed the date on their device perhaps?
     
  3. aitor-prado

    aitor-prado

    Joined:
    Jan 27, 2017
    Posts:
    2
    Hi Jeff, thanks for your response.
    Didn´t know the timestamp was dependant on the device´s set up date/time, is it submit_time which I need to use or that could have gaps between subsequent events? Ultimately what I need is to calculate times between the first and last event for a session (with current data, without rebuilding the game). Had a custom event sending the time between OnApplicationFocus(true) and OnApplicationFocus(false), but happen to send unreal times (sometimes very near to zero with actual evidence of gameplay and sometimes hours or even days without it).
    Cheers,
    Aitor
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    2,758
    These logs are from a year ago, it would be difficult to troubleshoot. Do you have recent evidence of this behavior? Does submit_time line up more with your expectations? Keep in mind that we do cache events and sometimes send the events on the next app launch, so submit_time could occur similarly. If this is for only a single user out of many and only happened once, it might be best to ignore it but that is up to you.