Moved analytics to head