djangoflow_firebase_analytics is a library built on top of the
firebase_analytics packages for Flutter. It provides an easy and organized way to implement Firebase Analytics for your Flutter apps.
- Events: Logging Firebase App events with parameters and value to sum.
- User Properties Removal: Removing user ID and all user data.
- User Properties Update: Updating user properties such as email, first name, last name, user ID.
Please make sure to follow the guides by
firebase_analytics see the documentation
To use this library, you will need to add the following dependencies to your pubspec.yaml file:
dependencies: djangoflow_firebase_analytics: <latest_version> djangoflow_analytics: <latest_version> firebase_analytics: <latest_version>
After that run
flutter pub get to install them.
You can then import the library and use it in your code:
You will need to initialize the library and add the
FirebaseUserPropertyUpdater to the
DjangoflowAnalytics instance from
You can then use the
DjangoflowAnalytics.instance.performAction method to send data to Firebase Analytics.
final firebaseAnalyticsEventSender = FirebaseAnalyticEventSender(firebaseAnalytics); final firebaseUserPropertyUpdateder = FirebaseUserPropertyUpdater(firebaseAnalytics); final firebaseUserPropertyRemover = FirebaseUserPropertyRemover(firebaseAnalytics); DjangoflowAnalytics.instance.init(); DjangoflowAnalytics.instance.addAllActionPerformers([ firebaseAnalyticsEventSender, firebaseUserPropertyUpdateder, firebaseUserPropertyRemover, ]);
Please find more details regarding it on
We would love to have your help in making Djangoflow Firebase Analytics better. If you are interested in contributing to the project, please check out the contribution guidelines.