Move analytics code.