Facebook Analytics(分析):使用图形API的用户属性和记录的事件 [英] Facebook Analytics: user properties and logged events using graph API
问题描述
我有Facebook应用程序(Messenger Bot App),其中使用图形API端点记录每个用户的自定义事件 / application / activities /
事件完美记录。我想要做的是为我的信使机器人用户创建自定义属性,以便我可以使用此属性来分割应用数据,如下所述: https://developers.facebook.com/docs/analytics/properties
所以我所做的是使用图形API端点 / application / user_properties / 创建属性。
它返回成功,属性创建完美,我可以看到它们应用分析页面上的细分过滤器。但是这个过滤器总是返回没有结果!
我认为问题是:针对特定的fb_user_id记录事件,但在用户属性端点中没有任何可以将fb_user_id与新创建的属性相关联。 FB文档中的p>
https://开发人员。 facebook.com/docs/analytics/properties 说明:
当您设置用户ID时,该ID被存储在用户设备上,
包含在从该设备记录的应用程序事件中。
这意味着在调用事件记录端点时在设置用户属性时,应该是一个参数来保存我创建的用户ID。但是我无法找到这个参数。我尝试发送它为 custom_events [_ app_user_id] ,但结果保持不变,在应用分析页面上,我可以看到过滤器,但没有用。
而不是 custom_events [_ app_user_id]
是应用程序事件有效载荷的字段,它看起来像这个字段是 custom_events [user_unique_id ]
用于用户属性的有效载荷。
I have facebook app (Messenger Bot App) where I am logging custom events for each user using the graph API endpoint /application/activities/
The events are logged perfectly. What I want to do is creating custom properties for my messenger bot users so I could segment the app data using this properties as described on: https://developers.facebook.com/docs/analytics/properties
So what I did was using the graph API endpoint /application/user_properties/ to create the properties.
It returned "success", the properties were created perfectly and I can see them as possible filters for segmentation on the app analytics page. But this filters always return no results!
I think the problem is: events are logged for specific "fb_user_id" but in user properties endpoint there is nothing to relate "fb_user_id" with the newly created properties.
on FB documentation https://developers.facebook.com/docs/analytics/properties it is stated:
When you set a user ID, this ID is stored on the user's device and included in app events logged from that device.
This means when calling the event logging endpoint there should be a parameter to hold the user id created by me when setting the user properties. But I am not able of finding this parameter. I tried send it as custom_events["_app_user_id"] but results remains the same and on app analytics page I can see the filters but it is useless.
Whereas custom_events["_app_user_id"]
is the field for app event payloads, it looks like the field is custom_events["user_unique_id"]
for user property payloads.
这篇关于Facebook Analytics(分析):使用图形API的用户属性和记录的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!