如何使用Firebase Analytics定义受众群体? [英] How to define an Audience with Firebase Analytics?

查看:445
本文介绍了如何使用Firebase Analytics定义受众群体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过将自己的应用的受众群体与自定义属性分开来跟踪自己的受众群体。每个用户都有一个权限列表。我希望能够分开他们与这个属性,然后登录到我的应用程序。



目前,所有用户都属于所有用户类别,而不是单独的类别。我使用CEO登录超过10次,等了几天......但是,我只能看到所有用户的观众名字,而不是我自定义的首席执行官的观众名字。

设置属性:
$ b

注意:在我的例子中,假设getRole()返回的用户角色是 '首席执行官'



在我的LoginActivity.java中

mRole.setUser(profile);
GenericDAO.getInstance(EntityRole.class).addOrUpdate(mRole);
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.SIGN_UP_METHOD,mRole.getRole());
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LOGIN,bundle);

这是我在Firebase中的设置: p>



结果如下:



解决方案

我从Firebase支持中收到此消息:


Firebase支持。对不起,我们无法在
的时间内收到回复。



我可以在堆栈溢出和转换
工程师。为了进一步进行调查,我会
想知道是否尝试使用调试模式记录事件?

使用详细的调试输出来确认成功的事件记录或
识别安装程序的问题。要在每个
平台上启用详细日志记录,请按照以下步骤操作:

Android adb shell setprop log.tag.FA VERBOSE adb shell setprop
log。标签.FA-SVC VERBOSE adb logcat -v时间-s FA FA-SVC



iOS在Xcode启动时传递此参数:
-FIRAnalyticsDebugEnabled



除此之外,您还可以检查您是否应用了以前报告应用的任何
过滤器。如果没有任何符合条件的用户,这通常会导致
的报告不显示任何数据。
如果您想要退回到
的高级概览,请务必清除所有过滤器。



问候,解决问题



I want to keep track of my app's Audience by separating them with a custom attribute. Every user have a list of permissions. I want to be able to separate them with this attribute when then login into my app.

Currently, all the user falls into the category "Alls Users" instead of their separate categories... I log in using CEO more than 10 times and I waited few days... Still, I only see the audience name 'All Users' increments instead of my custom 'CEO' audience.

Here's how I setup the attribute:

Note: In my example here, let's say the user role returned by getRole() is 'CEO'

In my LoginActivity.java

    for (EntityRole mRole : new ArrayList<>(profile.getRoles())) {
        mRole.setUser(profile);
        GenericDAO.getInstance(EntityRole.class).addOrUpdate(mRole);
        Bundle bundle = new Bundle();
        bundle.putString(FirebaseAnalytics.Param.SIGN_UP_METHOD, mRole.getRole());
        mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LOGIN, bundle);
    }

Here is my setting in Firebase:

Here is the result:

解决方案

I receive this from Firebase Support:

Hi,

Thanks for reaching out to the Firebase Support. Sorry we couldn't get back to you anytime sooner as we are experiencing a high inflow.

I can see your question on Stack overflow and conversion with a engineer. In order to proceed further with the investigation, I would like to know if you tried logging the events using the debug mode?

Use verbose debug output to confirm successful event logging or identify problems with setup. To enable verbose logging on each platform, follow these steps :

Android adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC

iOS Pass this argument on launch in Xcode : -FIRAnalyticsDebugEnabled

In addition to this can you check to see if you have applied any filter applied from previous report. This can often cause a report to show no data if it doesn't have any users that meets the criteria. Make sure to clear any filters if you want to step back to a high-level overview.

Regards, Animish

这篇关于如何使用Firebase Analytics定义受众群体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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