简体   繁体   English

如何使用 beamer 跟踪 firebase 分析中的屏幕名称?

[英]How to track screen names in firebase analytics using beamer?

I'm pretty fresh to beamer and navigator 2.0 so this may be a newbie question.我对 beamer 和 navigator 2.0 很陌生,所以这可能是一个新手问题。

I have included a FirebaseAnalyticsObserver as an observer in my BeamerDelegate but my firebase analytics dashboard still doesn't recognize screen names.我在我的BeamerDelegate中包含了一个FirebaseAnalyticsObserver作为观察者,但我的 firebase 分析仪表板仍然无法识别屏幕名称。 All screen names are 'not set'.所有屏幕名称都“未设置”。

Traditionally, screen names used be passed in via the RouteSettings in Nav 1.0, and firebase analytics would track them appropriately.传统上,使用的屏幕名称是通过 Nav 1.0 中的 RouteSettings 传入的,firebase 分析将适当地跟踪它们。

How are screen names set (for this purpose) within the beamer framework? beamer 框架内如何设置屏幕名称(为此目的)?

Any tips on what I'm missing would be very much appreciated.任何关于我所缺少的东西的提示将不胜感激。

You need to set the name property on every BeamPage to see the names displayed in Firebase Analytics using FirebaseAnalyticsObserver.您需要在每个BeamPage上设置name属性,才能使用FirebaseAnalyticsObserver.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM