analytics code adjustment