Firebase分析事件不显示价值 [英] Firebase analytics events don't show value

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

问题描述

我有一个游戏,我想要每次用户设置新的高分,发送事件,我检查当前的分数是否>以前,如果我是发送这个新的高分给firebase。代码:

  Bundle bundle = new Bundle(); 
bundle.putLong(FirebaseAnalytics.Param.LEVEL,extras.getInt(score));
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LEVEL_UP,bundle);

这是在firebase控制台中的样子:图像链接



您可以看到事件按值分组。



问题是我有4种不同的模式,我想为每个模式捕获高分,所以这是我如何尝试:

  Bundle bundle = new Bundle(); 
bundle.putLong(FirebaseAnalytics.Param.LEVEL,extras.getInt(score));
mFirebaseAnalytics.logEvent(mode4level,bundle);

这是我在firebase控制台中得到的:图像链接



按值分组的事件缺少,我只有事件位置,事件人口统计,每个事件会话。



如何解决这个问题,分析的关键部分缺少?
谢谢。

解决方案

报告参数仅限于建议事件,例如您提到的LEVEL_UP事件。您可以在此线程中找到更多信息。



从技术上讲,您可以注册一个用户属性,如game_mode,并在记录LEVEL_UP之前设置此值。然后,您可以使用过滤器game_mode =过滤您的LEVEL_UP事件报告。我们通常不建议这样做,因为用户属性旨在用于不经常更改的用户的属性。但是,它可能适合您的需要。



或者,您可以添加一个game_mode参数到LEVEL_UP事件,然后将您的应用程序链接到BigQuery来分析您的原始数据,以获得每个游戏模式的级别细分。


I have a game and I want to send event every time user sets new high score, I check if current score is > that previous and if it is I send that new high score to firebase. code:

Bundle bundle = new Bundle();
bundle.putLong(FirebaseAnalytics.Param.LEVEL, extras.getInt("score"));
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LEVEL_UP, bundle);

This is how it looks like in firebase console: image link

You can see how events are grouped by their value.

Problem is that i have 4 different modes and I want to capture high scores for each, so this is how I tried that:

Bundle bundle = new Bundle();
bundle.putLong(FirebaseAnalytics.Param.LEVEL, extras.getInt("score")); 
mFirebaseAnalytics.logEvent("mode4level", bundle);

And this is what I get in firebase console: image link

Grouped events by value are missing, I have only Event Location, Event demographics, Events per session.

How can I fix that, key part of analytics is missing ? Thank you.

解决方案

Reporting on parameters is limited to a subset of suggested events such as the LEVEL_UP event you mentioned. You can find more information in this thread.

Technically, you could register a user property like "game_mode" and setting the value of this before you log LEVEL_UP. Then you could filter your LEVEL_UP event reporting using the filter game_mode=. We don't generally recommend doing this since user properties are meant to be used for attributes of your users that do not change often. However, it may suit your needs here.

Alternatively, you can just add a "game_mode" parameter to the LEVEL_UP event and then link your app to BigQuery to analyze your raw data to get a breakdown of levels per game mode.

这篇关于Firebase分析事件不显示价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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