Adding analytics to index