added mixpanel analytics code