Adding analytics to index.