Search Unity

Resolved Analytics is not visible under Services and can't be enabled in 2021.3.15, 2021.3.18 and 2021.3.23

Discussion in 'Unity Analytics' started by RoninDvlpr, Apr 26, 2023.

  1. RoninDvlpr

    RoninDvlpr

    Joined:
    Nov 2, 2018
    Posts:
    7
    Hi, I'm trying to set up Analytics for a project.
    But for some reason, it's not visible under the Services tab:





    The project is linked, and I have both 'Analytics' and 'Analytics Library' packages installed.





    But on the 'Project settings' tab, Analytics lacks the on/off toggle.




    The problem persists on 2 different computers that are 1000 miles apart, with different Windows versions.
    Unity 2020 doesn't have this problem.
    Is it a bug, or I have missed some setup step?
     
  2. RoninDvlpr

    RoninDvlpr

    Joined:
    Nov 2, 2018
    Posts:
    7
    Okay, it appears that UGS Analytics doesn't need to be turned on.
    You simply need to initialize it in the code.
    The reason it didn't work for me is probably because I haven't initially called
    AnalyticsService.Instance.CheckForRequiredConsents();
    A call of this method appears to be required for initialization.

    P.S. Overall, It's pretty confusing for people who are used to an old analytics system. It would be cool if the editor had some kind of placeholder under the services tab, containing a link to an explanation of the new workflow.