added analytics to head