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.

Question Standard events working, but custom events not.

Discussion in 'Unity Analytics' started by MadboyJames, Jul 21, 2022.

  1. MadboyJames

    MadboyJames

    Joined:
    Oct 28, 2017
    Posts:
    251
    I know this has been asked many times, but I was unable to get custom events working.
    I have set up a custom event, and I am firing from script.
    upload_2022-7-21_11-32-46.png

    I know analytics is setup and connected because standard events are working fine.
    I also know that this code is firing because my Debug.Log is present in the console.
    I have waited 48 hours and the custom events have not shown up.
    Is there any other step I am missing?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes a common question unfortunately. You are using the legacy Analytics syntax. You'll want to use the UGS Analytics syntax, and make sure you initialize Analytics in Start or Awake also

    https://docs.unity.com/analytics/RecordingCustomEvents.html

    https://docs.unity.com/analytics/AnalyticsSDKGuide.html
     
  3. MadboyJames

    MadboyJames

    Joined:
    Oct 28, 2017
    Posts:
    251
    *Facepalm*
    I followed the modern sdk instructions for setup and connections, but followed the legacy instructions for custom events.
    Thanks for clarifying!
    Custom events are working now.
     
    JeffDUnity3D likes this.