本文介绍了Firebase自定义事件参数在控制台中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关Firebase事件的自定义参数的帮助,似乎无法查看或使用任何事件参数。
基本上试图使用参数来创建观众细分,但参数似乎永远不会到达(另一方面,所有的自定义事件到达正确)。

正如你可以从附件截图中可以看到,自定义事件的参数列表总是空的。
我们可以正确看到的唯一参数与系统事件有关(如 first_open in_app_purchase )。 / p>

这就是我们触发自定义事件和参数的方法:

  FIRAnalytics。 logEvent(withName:game_played,参数:[
username:id-\(self.username)as NSObject,
gameplayed:self._gamePlayed as NSObject
])

任何帮助真的将不胜感激



Firebase控制台

解决方案

根据,

自定义参数应该始终与您的事件。但是,SDK中的受众群体中使用了自定义参数,并且如果有与您的定义相匹配的受众群体,则会将其报告给服务器。你现在只能在报告中看到他们。

I need help with custom parameters of Firebase event, don’t seem to be able to see or use any event parameter.Basically trying to use parameters to create Audience segmentation, but parameters seem to never arrive (on the other hand all custom events arrive correctly).

As you can see from the attached screenshot the parameters list is always empty for custom events.The only parameters we can correctly see are related to system events (like first_open or in_app_purchase).

This is how we trigger custom events and parameters:

FIRAnalytics.logEvent(withName: "game_played", parameters:[
                "username": "id-\(self.username)" as NSObject,
                "gameplayed": self._gamePlayed as NSObject
                ])

Any help would really be appreciated.

Firebase console

解决方案

According to the website https://firebase.google.com/docs/analytics/android/events,

Custom parameters should always arrive with your events. However, custom parameters are used in Audience in the SDK and if there is an audience that matches your definition, they will be reported to the server. You just cannot see them in the report for now.

这篇关于Firebase自定义事件参数在控制台中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 11:01