Adding analytics on alert