Moved analytics to head, and fixed titles