gpt4 book ai didi

android - DebugView 中来自 Firebase Analytics 的用户属性

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:14:28 25 4
gpt4 key购买 nike

我在我的 android 代码中放置了一些用户属性,例如:( https://firebase.google.com/docs/analytics/android/properties )

mFirebaseAnalytics.setUserProperty("easy_account_connected", "true");

Then, I checked debug view and nothing appears whereas if there is a break point, my code stopped on this instruction. I can't understand, in my code there are other places where we can find these properties and sometimes it works (I see it in debug view) and sometimes, nothing.

Is it normal ?

I have found nothing on firebase website which could tell me debug view is not perfect but data are correctly saved ...

https://firebase.google.com/docs/analytics/debugview#seconds_stream

EDIT :

With the help of adbitx, I discovered user properties are sent with event so I made a new use case.2 events (login / logout) and one user properties (easy_account_connected). In login case, I send :

mFirebaseAnalytics.setUserProperty("easy_account_connected", "true");
mFirebaseAnalytics.logEvent("login", null);

在注销的情况下,我发送:

mFirebaseAnalytics.setUserProperty("easy_account_connected", "false");
mFirebaseAnalytics.logEvent("logout", null);

这是调试 View 中的结果 login Ok / logout Nok

登录有效,而注销无效...

最佳答案

根据您的描述,您似乎只有那一行,没有其他事件。很高兴知道在设置用户属性后是否发送任何事件。用户属性在设置后随每个事件一起出现。因此,您需要发送一些事件并在调试 View 中单击其中一个事件才能在“用户属性”选项卡下看到用户属性。

关于android - DebugView 中来自 Firebase Analytics 的用户属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46058318/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com