Move analytics to head. Closes #667.