我可以在 Firebase Analytics 事件中使用非英文字母吗?
Can I use non-english letters in Firebase Analytics events?
我像这样登录 Firebase:
fun log(action: String, category: Category, label: Label, value: Int) {
firebaseAnalytics.logEvent(
label.tag,
bundleOf(
"category" to category.tag,
"action" to action,
FirebaseAnalytics.Param.VALUE to value
)
)
}
我可以在我的捆绑包参数中使用非英语单词,例如“Экран_авторизации”而不是 "registration_screen" 吗?
更新
事实证明,我们可以使用不带空格的西里尔字母表。
Firebase 文档将 requirements for names of custom events 列为:
Event names can be up to 40 characters long, may only contain alphanumeric characters and underscores (""), and must start with an alphabetic character. The "firebase", "google_" and "ga_" prefixes are reserved and should not be used.
本文档中还有一个保留名称列表,因此请务必查看。
除此之外,您可以在 Analytics 事件名称、参数名称和值中使用任何 Unicode 字符。
另见:
- Shall I use Special Characters in Firebase Param Value "event_params.value.string_value" & query in Bigquery?(对于参数名称)
我像这样登录 Firebase:
fun log(action: String, category: Category, label: Label, value: Int) {
firebaseAnalytics.logEvent(
label.tag,
bundleOf(
"category" to category.tag,
"action" to action,
FirebaseAnalytics.Param.VALUE to value
)
)
}
我可以在我的捆绑包参数中使用非英语单词,例如“Экран_авторизации”而不是 "registration_screen" 吗?
更新
事实证明,我们可以使用不带空格的西里尔字母表。
Firebase 文档将 requirements for names of custom events 列为:
Event names can be up to 40 characters long, may only contain alphanumeric characters and underscores (""), and must start with an alphabetic character. The "firebase", "google_" and "ga_" prefixes are reserved and should not be used.
本文档中还有一个保留名称列表,因此请务必查看。
除此之外,您可以在 Analytics 事件名称、参数名称和值中使用任何 Unicode 字符。
另见:
- Shall I use Special Characters in Firebase Param Value "event_params.value.string_value" & query in Bigquery?(对于参数名称)