Search Unity

Codewise integration for level progression funnels

Discussion in 'Unity Analytics' started by Gerlich, Mar 29, 2019.

  1. Gerlich

    Gerlich

    Joined:
    Nov 3, 2015
    Posts:
    37
    Hey all,
    I am using Unity Analytics for the first time and am a bit unsure, if I have coded the Event correctly. If anyone could correct/ approve this, would be highly appreciated. I basically want to send a LevelComplete event, every time the player completes a stage. So I call this code, when the player reaches the finishing line.

    void TrackUnityAnalyticsEvent()
    {
    var levelCleared = new Dictionary<string, object>();
    levelCleared.Add("Level", (activeScene - 2).ToString());
    AnalyticsEvent.LevelComplete("Cleared", levelCleared);
    }

    My question now is, can I setup a funnel for level progression with this code, or did I do anything wrong in here, because I don´t pass an index in the LevelComplete function, but only the dictionary?
    Thanks in advance,
    Dan!
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446