Esempio n. 1
0
 public static void Event(string eventLabel, string value, string eventAction, string eventCategory)
 {
     string[] ids = new string[] { KEY };
     for (int i = 0; i < ids.Length; i++)
     {
         SmartAnalytics.SetTrackingID(ids[i]);
         SmartAnalytics.SendEvent(eventLabel, value, eventAction, eventCategory);
     }
 }
Esempio n. 2
0
 public static void Event(string eventAction, float eventValue)
 {
     string[] ids = new string[] { KEY };
     for (int i = 0; i < ids.Length; i++)
     {
         SmartAnalytics.SetTrackingID(ids[i]);
         SmartAnalytics.SendEvent(eventAction, eventValue);
     }
 }
    void Start()
    {
        if (!string.IsNullOrEmpty(TrackingID))
        {
            SmartAnalytics.SetTrackingID(TrackingID);
        }

        SmartAnalytics.SendView(Name);
    }
Esempio n. 4
0
 public static void Page(string _page)
 {
     Debug.Log("open page: " + _page);
     string[] ids = new string[] { KEY };
     for (int i = 0; i < ids.Length; i++)
     {
         SmartAnalytics.SetTrackingID(ids[i]);
         SmartAnalytics.SendView(_page);
     }
 }
Esempio n. 5
0
    /// <summary>
    /// Report the event
    /// </summary>
    public void Report()
    {
        if (!string.IsNullOrEmpty(TrackingID))
        {
            SmartAnalytics.SetTrackingID(TrackingID);
        }

        if (!string.IsNullOrEmpty(Category) && !string.IsNullOrEmpty(Label))
        {
            SmartAnalytics.SendEvent(Label, Value, Action, Category);
        }
        else if (!string.IsNullOrEmpty(Label))
        {
            SmartAnalytics.SendEvent(Label, Value, Action);
        }
        else
        {
            SmartAnalytics.SendEvent(Action, Value);
        }
    }
 // Use this for initialization
 void Start()
 {
     SmartAnalytics.SetTrackingID("UA-72246978-2");
 }