Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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:
    9
    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:
    9
    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