Add analytics and event tracking