add analytics to index