To Add Messenger on Website, Facebook SDK have to load.
And the Same Facebook SDK can be used for Analytics.
To log and view Analytics “Facebook App ID” have to be added.
View Facebook Analytics
“Event Debugging” will be useful to quickly check events are working.