android - 如何将自定义参数与保留事件一起发送到 firebase 分析

标签 android firebase firebase-analytics

我可以使用以下方法将自定义参数与自定义事件一起发送到 android 中的 firebase 分析:-

 Bundle bundle = new Bundle();
                bundle.putString("Action", "Action Perform Android");
                bundle.putString("Category", "CustomEvent Android");
                bundle.putString("Label", "click me");
                firebaseAnalytics.logEvent("Button_clicked", bundle);

以上方法有效,我们可以在 firebase 控制台上看到此事件。

Here是事件名称保留的一些事件,我们不能再次使用此名称将事件发送到 Firebase 分析,如 notification_dismissnotification_open 等。这些预定义事件由 Firebase 自动收集.

现在我想连同上述事件一起发送一些自定义参数。 例如,当 notification_open 事件触发时,我想将通知标题作为自定义参数与此事件一起添加。我们如何覆盖 notification_open 事件,或者我们如何在 android 中设置通知标题自定义参数以及此事件?

最佳答案

无法为自动发送的事件添加自定义参数。您必须定义自己的事件以将这些参数添加到。

完成此操作后,您可以在 BigQuery 中组合标准事件和自定义事件,以在单个报告中同时获取默认参数和自定义参数。

关于android - 如何将自定义参数与保留事件一起发送到 firebase 分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53338565/

相关文章:

android - 卡拉OK播放同步(Android延迟问题)

android - 夜间模式更改后刷新后台 Activity

node.js - 在 Firebase Cloud Functions 上使用 PDFMake 的 promise

firebase - 有没有办法创建开发人员构建的受众?

java - 查找照片上物体的轮廓

android - 等到 Text to Speech 开始说话

ios - Firebase downloadURLWithCompletion 错误

ios - Firebase 中的登录和注销问题

c# - Unity Firebase 中的 InitializationException

android - 启用调试日志记录 firebase 分析