我可以使用以下方法将自定义参数与自定义事件一起发送到 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_dismiss
、notification_open
等。这些预定义事件由 Firebase 自动收集.
现在我想连同上述事件一起发送一些自定义参数。
例如,当 notification_open
事件触发时,我想将通知标题作为自定义参数与此事件一起添加。我们如何覆盖 notification_open
事件,或者我们如何在 android
中设置通知标题自定义参数以及此事件?
最佳答案
无法为自动发送的事件添加自定义参数。您必须定义自己的事件以将这些参数添加到。
完成此操作后,您可以在 BigQuery 中组合标准事件和自定义事件,以在单个报告中同时获取默认参数和自定义参数。
关于android - 如何将自定义参数与保留事件一起发送到 firebase 分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53338565/