added analytics code again