[英]Events not being logged in with AppEventsLogger
I'm trying to use react-native-fbsdk for Facebook analytics. 我正在尝试使用react-native-fbsdk进行Facebook分析。 When I go to the events debugging page to check if it works, I can see a couple events like
App Activation
and App Installs
and other stuff like Completed App Session
. 当我转到事件调试页面检查其是否正常运行时,我可以看到一些事件,例如
App Activation
和App Installs
以及其他事件,例如Completed App Session
。 Of these, I'm manually logging App Activation
whereas the rest is I think the sdk provides by default. 其中,我正在手动记录
App Activation
而其余的是我认为sdk默认提供。 The problem is, it's not logging many other custom events that I'm trying to log. 问题是,它没有记录我尝试记录的许多其他自定义事件。 How do I debug this?
我该如何调试? Thanks in advance.
提前致谢。
When you send the custom events, are you setting the page_scoped_user_id
correctly? 发送自定义事件时,是否正确设置了
page_scoped_user_id
? Here is a raw JSON cutom event, per docs . 根据docs ,这是一个原始的JSON Cutom事件。
{
url : "https://graph.facebook.com/<app_id>/activities",
form: {
event: 'CUSTOM_APP_EVENTS',
custom_events: JSON.stringify([{
_eventName: "fb_mobile_purchase",
_valueToSum: 55.22,
_fb_currency: 'USD'
}]),
advertiser_tracking_enabled: 0,
application_tracking_enabled: 0,
extinfo: JSON.stringify(['mb1']),
page_id: <page_id>,
page_scoped_user_id: recipientId
}
}
The last value, recipientId
, is misleading. 最后一个值,
recipientId
,是一种误导。 If you want to log something the user sent, you would want to log the senderId
property of that incoming message. 如果要记录用户发送的内容,则要记录该传入消息的
senderId
属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.