Moved Google Analytics to head and changed JS code