Moved analytics into "head"