public void Transaction(string productId, float amount, string currency) { var data = new Dictionary <string, object>(); data.Add("productId", productId); SA_FB_Analytics.LogPurchase(amount, currency, data); }
void Start() { UM_AnalyticsService.Client.Init(); //Unity settings via code example UM_Settings.Instance.Analytics.UnityClient.LimitUserTracking = true; UM_Settings.Instance.Analytics.UnityClient.DeviceStatsEnabled = true; //Firebase settings via code UM_Settings.Instance.Analytics.FirebaseClient.MinimumSessionDuration = 10; UM_Settings.Instance.Analytics.FirebaseClient.SessionTimeoutDuration = 30; SA_FB_Analytics.LogAppEvent("my event"); }
public void Event(string eventName) { SA_FB_Analytics.LogAppEvent(eventName); }
public void Event(string eventName, IDictionary <string, object> data) { var fbData = (Dictionary <string, object>)data; SA_FB_Analytics.LogAppEvent(eventName, null, fbData); }