Firebase Analytics按用户ID过滤 [英] Firebase Analytics Filter By User ID

查看:120
本文介绍了Firebase Analytics按用户ID过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于分析的Firebase Android SDK提供了一种名为setUserId(String id)的方法,现在我启用了Firebase日志记录,每次调用该方法setUserId(1234)时,我都会在日志Setting user property (FE): _id, 1234中看到它.

The Firebase Android SDK for analytics provides a method named setUserId(String id), now i enabled firebase logging and every time i called the method setUserId(1234) i see this in the logs Setting user property (FE): _id, 1234.

我的问题是Firebase仪表板为什么不让我们按此属性过滤,没有不用于userId而不是_id的属性,我什至试图将_id添加为仪表板中的属性,但是Firebase不允许属性名称从下划线开始.

My question is how come the Firebase dashboard does not let us filter by this property, there is no property not for userId and not _id, i even tried to add _id as a property in the dashboard but Firebase does not allow property names to start with an underscore.

我真的必须停止调用该方法而只是执行setUserProperty("userId", 1234)还是我遗漏了某些东西...

Do i really have to stop calling that method and just do setUserProperty("userId", 1234) or am i missing something...

推荐答案

我为此花了几个小时,发现我正在寻找的答案或多或少,希望这可以为其他人节省一些时间.

I have spent a few hours on this and found the answer i was looking for more or less, hopefully this might save someone else some time.

通过Firebase的用户ID"属性进行过滤的唯一方法是创建一个受众群体,您可以在其中选择setUserId(String id)方法提供的用户ID属性.

The only way to filter by Firebase's User Id property is by creating an audience, there you will be able to pick the user id property that is supplied from the setUserId(String id) method.

这是令人沮丧的,因为在创建受众群体之前,您不会看到想要的用户事件.

It is a downer though because you won't see any events for the user/user's you want from before the audience was created.

这篇关于Firebase Analytics按用户ID过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆