added analytics for search