如何将事件参数记录到Firebase控制台 [英] How to log event parameters to Firebase console

查看:152
本文介绍了如何将事件参数记录到Firebase控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Firebase进行应用程序分析,并遇到一些问题,想要查看与我的活动相关的自定义参数。



问题是,创建一个观众,我可以看到所有的事件,但不能深入到参数(没有参数显示与事件关联)。

作为一个例子,我想注册将零售添加到收藏夹事件并传递零售商的ID作为参数。最后的目标是评估有多少用户将某个零售店添加到他们最喜欢的列表中。

对于iOS,我使用这段代码:

  [FIRAnalytics logEventWithName:@add_retail_to_favoriteparameters:@ {@id_retail:idRetail}]; 

对于Android:

  Bundle bundle = new Bundle(); 
bundle.putString(FirebaseAnalytics.Param.ITEM_ID,String.valueOf(mId));
mFirebaseAnalytics.logEvent(pv_detail,bundle);

我做错了什么?

感谢您的支持

解决方案

目前,所有自定义参数都可在BigQuery导出中使用。并非所有的自定义参数都可以在控制台的标准报告中找到。

有关更多详细信息,请参阅
Firebase Analytics自定义事件参数



我们正在寻找改进报告的方法,更好地支持自定义参数是我们正在考虑的事情。 >

I have just started using Firebase for my app's analytics and I'm having some issues trying to view custom parameters associated with my events.

The problem is that when creating an audience, I can see all the events but cannot drill down to the parameters (no parameters are shown associated to the events)

As an example, I'd like to register the event "Add retail to favourite" and pass, as a parameter, the ID of the retail. The final goal is to assess how many users had added a certain retail to their favourite list.

For iOS I'm using this piece of code:

[FIRAnalytics logEventWithName:@"add_retail_to_favorite" parameters:@{@"id_retail":idRetail}];

And for Android:

Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, String.valueOf(mId));
mFirebaseAnalytics.logEvent("pv_detail", bundle);

Am I doing anything wrong?

Thanks for your support

解决方案

Currently, all custom parameters are available in the BigQuery export. Not all the custom parameters are available in the standard reports in the console.

For more details, see Firebase Analytics custom events params

We are looking for ways of improving the reports, and better support custom parameters is something we are considering.

这篇关于如何将事件参数记录到Firebase控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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