add analytics to head