upate analytics to have events