smf_firebase_analytics
The SMF module of Google Analytics for Firebase with firebase_analytics. It provides the analytics role of SMF: the app records what its users do through its AnalyticsService, and, when the app has a router, a screen view for each screen the user sees.
An app can have several modules that provide analytics, and the service of the app forwards each call to all of them. Analytics works on the Firebase app, so the module depends on smf_firebase_core, which comes with it and sets up Firebase.
Use with the SMF CLI
smf create asks which modules provide the analytics of the app, and the answer may be none. To choose this one without the question:
smf create my_app -m firebase_analytics
You don't add this package to an app yourself: smf create of the SMF CLI puts what the module generates into the app.
SMF generates apps for Flutter 3.44 or newer and Dart 3.12 or newer. It is tested on macOS, Linux and Windows.
Documentation
Libraries
- bundles/firebase_analytics_bundle
- smf_firebase_analytics
- The module that records what users do in the app, and the screens they
see, with Firebase Analytics:
FirebaseAnalyticsModule, a provider of the analytics role of the SMF module model.