Once your bot is launched, there are lots of ways to collect valuable insights and analytics on how it is being used and what people on Messenger think about it.
Facebook Analytics is a powerful tool for developers on all of Facebook's platforms to understand their audience and optimize their apps. It now supports Messenger Bots!
Using it, you can view detailed demographic info about your users. You can also log your own custom events. For a complete list of default app events and information on custom events, see App Events with Bots for Messenger.
You can also view your bot's Facebook page and check the Messages tab under Insights.
This is a good spot to check your spam and block rates. Keep them low by focusing on a good user experience!
You can export analytics data by navigating to App Analytics under Messenger. This is restricted to admins of the app.
With the Messaging Insights API (provided via the Pages Insights API), you can programatically retrieve the same information that appears in the Page Insights tab of your Facebook Page. To retrieve one or more metrics, send a
GET request to the
/insights endpoint, and include a comma-separated list of metric names to retrieve:
curl -X GET "https://graph.facebook.com/v2.8/me/insights/?metric=<LIST_OF_METRICS>&access_token=<PAGE_ACCESS_TOKEN>"
The following Messenger-specific metrics are available. For more information, see the Messaging Insights API Reference.
The total number of open conversations between your Page and people in Messenger. This metric excludes blocked conversations.
The number of messaging conversations on Facebook Messenger that began with people who had never messaged with your business before.
Daily unique active conversations count.
The number of conversations with the Page that have been blocked.
The number of conversations from your Page that have been reported by people for reasons such as spam, or containing inappropriate content.
The number of conversations from your Page that have been reported by people for reasons such as spam, or containing inappropriate content. broken down by report type:
This metric will be removed in Graph API v2.12.
Please migrate your code to use our other Messaging Insights metrics, which provide comparable information.
Daily unique conversation counts broken down by user feedback actions, including
People can leave a 5-star review and provide freeform feedback on your bot from Manage > Leave Feedback.
Ratings and reviews for all Messenger bots an app is associated with will be emailed to the app owner(s) daily. Ratings and reviews are also available in the developer console under Products > Messenger > Bot Ratings.
Reviews and ratings for Messenger bots are also available at a page-level in the 'Messenger Reviews' tab of Page settings. This is a convenient way for Page owners who do not have access to the Facebook app associated with their bot to see their ratings and reviews.
You may also consider integrating your existing analytics provider into your Messenger Bot.
Most analytics providers allow you to create server side events, these can then be used to measure retention, engagement, errors and other metrics that are important to your experience.