Add analytics feature