This guide is intended to help you set up Facebook Analytics quickly so you can see data, analyze trends, and better understand the behavior of people who use your app.
As soon as you have Messenger Bots running,predefined app events
are automatically logged by the Messenger Platform.
In addition to the predefined events, bots can logcustom events
by using theApplication Activities Graph API
describes the properties and values that must be provided to the endpoint to log custom bot events. Here is anexample
You can use the following app event builder to create code for both custom events and predefined events.
If you're an admin or a developer of a bot for Messenger, you can validate that you've correctly implemented custom event logging in Facebook Analytics. Please see our documentation on indebugging events
in Facebook Analytics to learn how to verify that events are being logged.
The demo app does not have an Event Debugging link. This link is only available in apps that you create.