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); } }
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); }
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); } }
/// <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"); }