值参数未显示 [英] value parameter not displayed

查看:63
本文介绍了值参数未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Android中的以下代码记录了一个Firebase事件(很久以前).

i've logged a firebase event using the code below in android (a long time ago).

mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle params = new Bundle();
params.putString(FirebaseAnalytics.Param.VALUE, String.valueOf(subjectvalue));
params.putString(FirebaseAnalytics.Param.CURRENCY, "IRR");
mFirebaseAnalytics.logEvent("Calculate_Cost_of_Hearing", params);

如您在此图像中看到的,事件正在被记录并发送到firebase并单独显示,但值指示器仍显示为零. 我应该更改代码以使其显示值还是应该使用选项?我的最终目标是要知道平均值,而不仅仅是SUM.

as you can see in this image the events are being logged and sent to firebase and shown separately but the value indicator still shows zero. should i change my code in order to make it show the values or should i play with the options ? and my ultimate goal is to know the average values not just the SUM.

推荐答案

我很确定Value显示为0,因为该参数捆绑为String.如果您使用params.putDouble()或putLong()而不是putString(),则该值应在Firebase控制台中累积.

I am pretty sure that Value displays 0 because the parameter is bundled as a String. If you use params.putDouble() or putLong() instead of putString() the value should accumulate in the Firebase console.

您将无法在事件视图中显示每个用户的平均值,因为它仅显示累计值.如果您想使用数据,则必须将Firebase实例连接到BigQuery.

You will not be able to display the average value per user in the event view since it shows only the accumulated value. If you want to work with the data you will have to connect your Firebase instance to BigQuery, pretty much.

如果您将事件计为收入,也许您可​​以在仪表板"的每位用户收入"指标中获得价值",但我没有这样做的经验.

Perhaps you could get the Value included in the "revenue per user" - metric on the Dashboard if you make the event count as revenue, but I have no experience doing that.

这篇关于值参数未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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