moved analytics to head