Move analytics code to body section