change analytics code