/// <summary>
 /// Tracks an event.
 /// </summary>
 public void LogEvent(string eventType, object properties = null, bool outOfSession = false)
 {
     if (properties == null)
     {
         _native.LogEvent(eventType);
     }
     else
     {
         _native.LogEvent(eventType, GetProperties(properties), outOfSession);
     }
 }