Fix analytics code.