// Analytics public void OnLogEvent() { // Send a custom event to analytics network(e.g. Google Analytics) // Simple event: Enhance.LogEvent("event_type"); // Event with an additional parameter: Enhance.LogEvent("event_type", "event_param_key", "event_param_value"); }
/** * Log custom analytics event * * @param eventType event type (for instance 'level_completed') * @param paramKey parameter key (for instance 'level') * @param paramValue parameter value (for instance '3') */ public static void LogEvent(string eventType, string paramKey, string paramValue) { Enhance.LogEvent(eventType, paramKey, paramValue); }
/** * Log custom analytics event * * @param eventType event type (for instance 'menu_shown') */ public static void LogEvent(string eventType) { Enhance.LogEvent(eventType); }