added code to track using mixpanel