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 Unity Analytics not collecting data

Discussion in 'Unity Analytics' started by abdulhakeemidr, May 6, 2024.

  1. abdulhakeemidr

    abdulhakeemidr

    Joined:
    Jun 22, 2020
    Posts:
    8
    Hello everyone,

    I'm trying to set up Unity analytics on my game. I set it up following a tutorial made by code monkey but since then the data hasn't been populated at all. I ran the game in the editor and I tested the game on multiple computers to generate traffic but it still shows no data collected. Is there anything I'm missing with the setup?

    I am using Unity 2022.3.22f1.
     
  2. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    283
    Hello,
    Have you provided consent?

    Check out this tutorial it includes a code snippet that you can use.
    AnalyticsService.Instance.StartDataCollection();


    Hope this helps you out!
     
    abdulhakeemidr likes this.
  3. abdulhakeemidr

    abdulhakeemidr

    Joined:
    Jun 22, 2020
    Posts:
    8
    Hello,

    I followed the steps in the tutorial and I created a UGS_Analytics gameobject. Then I created a UGS_Analytics script with the contents of the script as described in the tutorial. However, even though I ran the game in the editor and ran a new build of the game, there was no change in the analytics data on the unity cloud. Is there something I'm missing?
     
  4. abdulhakeemidr

    abdulhakeemidr

    Joined:
    Jun 22, 2020
    Posts:
    8
    Hello,
    My problem got resolved. It took a couple of hours before the data was collected and populated on the page. Thank you Seb!
     
    SebT_Unity likes this.