Moved script of analytics to head ending