Move analytics code up and on one line.