Analytics

Updated analytics code