コード例 #1
0
        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);
        }
コード例 #2
0
    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");
    }
コード例 #3
0
 public void Event(string eventName)
 {
     SA_FB_Analytics.LogAppEvent(eventName);
 }
コード例 #4
0
        public void Event(string eventName, IDictionary <string, object> data)
        {
            var fbData = (Dictionary <string, object>)data;

            SA_FB_Analytics.LogAppEvent(eventName, null, fbData);
        }