Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Custom Events unchecked not Working

Discussion in 'Unity Analytics' started by Tesondo, May 22, 2019.

  1. Tesondo

    Tesondo

    Joined:
    Feb 9, 2019
    Posts:
    5
    I setup up Analytics in Unity, but Custom Events check box is grey and I cannot use Analytics Event Tracker script.

    In the Validator section it seems to track everything. Please see the attached image.
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,608
  3. Tesondo

    Tesondo

    Joined:
    Feb 9, 2019
    Posts:
    5
    Using 2019.1.4f1 and even tried it on the earlier version.

    I stopped and restarted Analytics Service. The validator is working but

    1) using UnityEngine.Analytics; is greyed out in the script
    2) As soon as I type "Analytics Event Tracker", Unity doesn't find it as a component.

    So basically Unity acting like it doesn't know what Analytics is.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,608
    You don't need to use the tracker in recent releases, it's build into the editor. Please use the code referenced above.
     
  5. Tesondo

    Tesondo

    Joined:
    Feb 9, 2019
    Posts:
    5
    Jeff,

    Thank you.

    Please see the attached screenshot.

    I used the sample code. I get red squigly line and "using UnityEngine.Analytics;" is greyed out.

    Is something missing?
     

    Attached Files:

  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,608
    Please test on a new project, to compare. I just tested on a new 2019 project, the code works as expected.
     
  7. Tesondo

    Tesondo

    Joined:
    Feb 9, 2019
    Posts:
    5
    Good idea. I tested on a new project and it works. So what should I do with my existing project? Do I have to create a new project and transfer everything over one by one?

    Thanks.
     
  8. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,608
    You would want to try to determine any differences. You might want to compare any package differences in Package Manager. But don't spend too much time, if copying assets to a new project would be quicker
     
  9. porandojin1

    porandojin1

    Joined:
    Aug 5, 2017
    Posts:
    7
    hi,

    is UnityEngine.Analytics.AnalitycsEvent (https://docs.unity3d.com/2018.2/Documentation/ScriptReference/Analytics.AnalyticsEvent.html)
    supposed to work in Unity 2019.3.1f1?

    I'm not able to acess it, even on a new project (which makes sense, because the documentation says it's legacy).
    On the other hand, the Unity Services Documentation still points there:
    https://docs.unity3d.com/Manual/UnityAnalyticsStandardEvents.html

    I'm really confused. I'm trying to trigger a standard funnel event for a level being solved.
    Normally I would do it with:
    AnalyticsEvent.LevelComplete(currentLevel);
    but it doesn't seem to work anymore.

    How Am I support to trigger a standard event?
    Can you support me @JeffDUnity3D?
    Thanks
     
  10. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,608
    @porandojin1 You need to install the Analytics Library in Package Manager, then these API's will show up.
     
unityunity