Fixed analytics code.