Logs an event to Firebase Analytics, if the user has granted permission.
The name of the event. Should be between 1 and 40 characters long.
Optional parameters to be sent with the event.