Chatbot Analytics

Is there anyway to track interaction, time spent in chat, etc from a deployed chatbot?