如何关联 AppCenter 中的 UserId 和 User_Id

How to corelate the UserId and User_Id from AppCenter

有没有办法通过 nuget 获取 AppCenter 生成的 User_Id?

基于此comment,AppCenter 中有两种类型的用户 ID。带有 SetUser 的那个,我已经在使用了,但是在 AppInsights 中导出数据之后,看起来查询是用 AppCenter 生成的那个完成的。为了检索与我的 userId 相关的分析,我想连接这两个,但我找不到任何 info/way 通过 AppCenter nuget 检索生成的 user_id。

在对该主题进行更多搜索和调查后,我发现这是 AppCenter 分析日志的一个已知问题。为了绕过它,您可以使用 CustomProperties 字段,然后查询该字段,例如 here.

如果您不想再单击一个 link,查询如下所示:

customEvents
| extend properties = todynamic(tostring(customDimensions.Properties))
| extend userID = tostring(properties.UserID) // assuming you named the property UserID on the client side
| where isnotempty(userID) // this will be empty if you haven't set it as a property in the SDK