Updated analytics code.