Firebase 分析 iOS

Firebase Analytics iOS

我有一个带有两个自定义参数 "parameter_one" 和 "parameter_two" 的事件 "my_event",都是文本类型。 但是当我记录事件时,它没有出现在 table.

这就是我正在尝试的:

Analytics.logEvent("my_event", parameters: ["parameter_one": "value_of_parameter_one"])

table's image

我做错了什么?

我找到了答案。

来自FIRParameterNames.h

Params supply information that contextualize Events. You can associate up to 25 unique Params with each Event type. Some Params are suggested below for certain common Events, but you are not limited to these. You may supply extra Params for suggested Events or custom Params for Custom events. Param names can be up to 40 characters long, may only contain alphanumeric characters and underscores ("_"), and must start with an alphabetic character. Param values can be up to 100 characters long. The "firebase" prefix is reserved and should not be used.

我使用的是前缀 "firebase_"。如果有人也恰好选择了这个前缀,请在这里留下我的答案。