/// <summary> /// Report a view, e.g. SmartAnalytics.SendView( "Main Menu" ); /// </summary> public static void SendView(string name) { string requestString = k_apiEndpoint + GetViewString(name) + GetRequiredParameters() + GetSaltString(); SmartAnalyticsNetwork.HTTPGetRequest(requestString); }
/// <summary> /// Report an event /// </summary> public static void SendEvent(string eventAction) { string requestString = k_apiEndpoint + GetEventString() + "&ec=" + WWW.EscapeURL("(uncategorised)") + "&ea=" + WWW.EscapeURL(eventAction) + ((eventAction.Length > 0) ? ("&el=" + WWW.EscapeURL(eventAction)) : "") + "&ev=0" + GetRequiredParameters() + GetSaltString(); SmartAnalyticsNetwork.HTTPGetRequest(requestString); }
/// <summary> /// Report an event /// </summary> public static void SendEvent(string eventLabel, float eventValue, string eventAction, string eventCategory) { string requestString = k_apiEndpoint + GetEventString() + "&ec=" + WWW.EscapeURL(eventCategory) + "&ea=" + WWW.EscapeURL(eventAction) + ((eventLabel.Length > 0) ? ("&el=" + WWW.EscapeURL(eventLabel)) : "") + "&ev=" + eventValue.ToString() + GetRequiredParameters() + GetSaltString(); SmartAnalyticsNetwork.HTTPGetRequest(requestString); }
/// <summary> /// Report a timing in milliseconds /// </summary> public static void SendTiming(string name, string category, string label, int timeInMS) { string requestString = k_apiEndpoint + GetTimingString() + "&utc=" + WWW.EscapeURL(category) + "&utv=" + WWW.EscapeURL(name) + "&utl=" + WWW.EscapeURL(label) + "&utt=" + timeInMS + GetRequiredParameters() + GetSaltString(); SmartAnalyticsNetwork.HTTPGetRequest(requestString); }