Update mixpanel analytics code