Adding analytics to inde