adding analytics code for google and mixpanel