Track an event

Records a custom event for the given key and event type. Events are used to measure the impact of feature flags on user actions and experimentation metrics.