added code for countly events