Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Data not showing up on dashboard

Discussion in 'Unity Analytics' started by Abulero, Oct 11, 2023.

  1. Abulero

    Abulero

    Joined:
    Dec 18, 2020
    Posts:
    10
    Hey all. I finished looking at the docs and set up my code. The Analytics.CustomEvent method is being called but no data is being shown on the dashboard. Below you can see some code snippets and screenshots.

    upload_2023-10-11_14-43-5.png
    upload_2023-10-11_14-44-35.png

    The testEnvironment field is set to "true" on the editor. The SendStatsData method is being called when a game session ends and I want to record how much "wood" and "emeralds" the player collected, which are resources in the game.

    The Start method is called way earlier, more than 2 minutes before the SendStatsData method is called.

    My project is also properly linked.

    Does anyone know what might be going on?
     
  2. Abulero

    Abulero

    Joined:
    Dec 18, 2020
    Posts:
    10
    If anyone's wondering, I got it working. There were 3 things wrong:
    - The event was not enabled in the dashboard
    - The event did not have the custom parameters I'm using (sessionMaxWood and permanentMaxEmeralds) defined
    - I should use AnalyticsService.Instance.CustomData rather than Analytics.CustomEvent