Added an optional delegate method for getting notified when Mixpanel will track an event