end level analytics
Dictionary<string, object> eventParams = new Dictionary<string, object>(); eventParams.Add("Level_num", level); eventParams.Add("playerShots", playerShots); eventParams.Add("scorePlayer", scorePlayer); eventParams.Add("enemyShots", enemyShots); eventParams.Add("scoreEnemy", scoreEnemy); TinySauce.TrackCustomEvent("custom_level_end", eventParams); Dictionary<string, string> stringParams = eventParams.ToDictionary( kvp => kvp.Key, kvp => kvp.Value.ToString() ); #if UNITY_IOS Smartlook.TrackCustomEvent($"level_end_{level}"); #endif ByteBrew.NewCustomEvent("custom_level_end", stringParams);
Leave a Comment