如何将自定义参数以及保留事件发送到Firebase分析 [英] How to send custom parameter along with reserve event to firebase analytics

查看:239
本文介绍了如何将自定义参数以及保留事件发送到Firebase分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am able to send custom parameter along with custom event to firebase analytics in android using below method :-

 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控制台上看到此事件.

Above method is working and we can see this event on firebase console.

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

Here are some event that event name is reserve and we can not use this name again to send event to Firebase analytics like notification_dismiss, notification_open etc. These predefined events are automatically collected by Firebase.

现在,我想随上述事件一起发送一些自定义参数. 例如,当notification_open事件触发时,我想将此事件的标题添加为自定义参数.如何在android中覆盖notification_open事件或如何在此事件中设置通知标题自定义参数?

Now I want to send some custom parameter along with these above event. For example when notification_open event fired, I want to add notification title as a custom parameter along with this event. How can we override notification_open event or how can we set notification title custom parameter along with this event in android?

推荐答案

无法将自定义参数添加到自动发送的事件中.您必须定义自己的事件才能将这些参数添加到其中.

There is no way to add custom parameters to events that are automatically sent. You will have to define your own event to add those parameters to.

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

Once you've done that, you can combine the standard and custom event in BigQuery, to get both the default and the custom parameters in a single report.

这篇关于如何将自定义参数以及保留事件发送到Firebase分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆