我在4个不同的片段中有一个独特的按钮。这些独特的按钮在所有这些片段中都执行相似的操作,但稍有调整。
由于所有这些事情都是相似的,因此我将它们以事件名称“ unique_btn_click_event”记录在一起
val eventName = "unique_btn_click_event"
val eventBundle = Bundle()
eventBundle.putString("fragment_name", fragmentName)
eventBundle.putString("unique_stuff_1", uniqueStuff1)
eventBundle.putString("unique_stuff_2", uniqueStuff2)
eventBundle.putString("qty_selected", quantity)
FirebaseAnalytics.getInstance(context).logEvent(eventName, eventBundle)
我的目标是衡量哪个片段使用唯一按钮的次数最多,以便我可以对此进行优化并可能弃用其他按钮。
虽然该事件已unique_btn_click_event
记录,但我看不到已记录的bundle参数的历史记录。我单击fab_actions事件:
在出现的下一页中,没有地方可以查看这些捆绑包,即使按计数也是如此。
我得到的最接近的是:StreamView:旨在仅显示实时包数据。实时很酷,但是不能用来做出质量决定。
我单击流视图。
我点击趋势,然后点击事件
我看到了实时捆绑包日志数据的列表。
我如何查看日志历史记录的操作计数。
我如何嵌套事件。
为了在Firebase Analytics仪表板上查看事件参数,您需要在事件中添加这些参数。此链接将为您提供添加事件参数所需的步骤:在Firebase Analytics报表中添加客户事件参数
总结步骤:
unique_btn_click_event
In order to see the list of parameters used in your events, you need to select the Parameter Reporting tab next to the Events tab on the Analytics Dashboard.
Once you have enough tracked data, you will see the values of the event parameters on the Events page itself.
As for getting real-time event-tracking, you need to use Debug View to track your events in real-time. In order to enable debugging in Firebase Analytics for Android, you need to run the following commands using ADB:
Enable Debugging in IDE
adb shell setprop log.tag.FA VERBOSE
Enable Debugging in Debug View of Firebase Analytics
adb shell setprop debug.firebase.analytics.app <your_app_package_name>
NOTE: Substitute <your_app_package_name>
(without the <>) with the package name of your application. Example: com.example.uniquepackagename
You will get the log of your event action count in the Existing events table in the Events section as mentioned above.
Lastly, for nesting events, I don't think Firebase Analytics currently supports that directly. However, you can use Custom User properties in your application to group the events by a User Property. User properties can be used as filters to filter events by a user property. Here is a link to get you started on User Property: Work with User Properties in Firebase
After setting the user properties in your Android app, you need to add them in the Firebase Analytics dashboard as well. You need to go to User Properties section and then select New User Property to add the user properties. The name of the user property needs to be exactly the same as the name you are using in your app.
注意:设置用户属性后,即使未明确设置,该属性也会在发送的其他事件中保留。因此,在设置用户属性时要小心,因为在某些事件中可能不需要它们。
希望这对您解决Firebase Analytics中的事件有帮助。
问候,
j
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句