Ejemplo n.º 1
0
 public static void Event(string eventAction)
 {
     string[] ids = new string[] { KEY };
     for (int i = 0; i < ids.Length; i++)
     {
         SmartAnalytics.SetTrackingID(ids[i]);
         SmartAnalytics.SendEvent(eventAction);
     }
 }
    void Start()
    {
        if (!string.IsNullOrEmpty(TrackingID))
        {
            SmartAnalytics.SetTrackingID(TrackingID);
        }

        SmartAnalytics.SendView(Name);
    }
Ejemplo n.º 3
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);
     }
 }
Ejemplo n.º 4
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");
 }