Current behavior of analytics.logEvent is to throw an error if the event name contain illegal characters, which crashes the app if not caught in javascript. May be it would be better to log this event instead of throwing an error