我使用 Ionic 2 创建我的应用程序,我还使用 cordova-plugin-firebase用于分析。
该插件运行良好,我在我的 firebase 仪表板中看到了事件。
但是我看不到我发送的事件参数。
如插件文档中所述,我使用以下代码记录事件和事件参数。
window.FirebasePlugin.logEvent("page_view", {page: "dashboard"});
浏览 Firebase docs提到事件参数不会直接显示,但应该在设置“受众”后出现
Custom parameters: Custom parameters are not represented directly in your Analytics reports, but they can be used as filters in audience definitions that can be applied to every report. Custom parameters are also included in data exported to BigQuery if your app is linked to a BigQuery project.
我找到了设置受众的方法here .但是我不知道如何设置它们。
感谢您在这方面的任何帮助。
最佳答案
别忘了,适用于 Ionic 的 Firebase 还很年轻 (0.1.17)。 我和你有同样的问题,可能插件没有发送“值”参数。
Firebase 文档也说:
- 自定义参数包含在 BigQuery 中。
您可以在 Analytics > Events 中激活它。 我还没有这样测试过。
铜
关于android - 获取 cordova ionic 应用程序的 Firebase 事件参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39934537/