layouts: move analytics to head