Add analytics to tree