updated the analytics code to the right one