Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Resolved Analytics stopped working

Discussion in 'Unity Analytics' started by PaulDyatlov, Jul 26, 2023.

  1. PaulDyatlov

    PaulDyatlov

    Joined:
    Jul 6, 2019
    Posts:
    25
    After I shipped my newest build, migrating to the new Unity version (2023.1.5f1) Unity Analytics stopped working, showing 0 events, even though I didn't change anything related to it

    The suggestion that people just stopped playing is incorrect as I'm reading the logs in realtime and I can see them play.

    AnalyticsService.Instance.CustomData method is being called as I've debugged it

    upload_2023-7-25_19-17-53.png

    Any help will be appreciated
     
  2. jbassking

    jbassking

    Joined:
    Feb 27, 2014
    Posts:
    118
    did you ever get an answer to this?
     
  3. PaulDyatlov

    PaulDyatlov

    Joined:
    Jul 6, 2019
    Posts:
    25
    Actually, I was able to figure it out! They changed their API, and now you need to call this method in your initialization

    Code (CSharp):
    1. AnalyticsService.Instance.StartDataCollection();
    After that, use this method to report your data
    Code (CSharp):
    1. AnalyticsService.Instance.CustomData(eventId);
     
    Mike01923 likes this.