recordEvent

private fun recordEvent(event: TrackingEvent)

Records a tracking event with improved performance and memory management.