Moved Analytics code to head.