djangoflow_mixpanel_analytics is a library built on top of the
mixpanel_flutter packages for Flutter. It provides an easy and organized way to implement Mixpanel Analytics for your Flutter apps.
- Events: Tracking Mixpanel analytics events with parameters.
- User Properties Removal: Removing user ID and all user related super properties.
- User Properties Update: Updating user super properties such as email, first name, last name, user ID.
Please make sure to follow the guides by
mixpanel_flutter see the documentation
To use this library, you will need to add the following dependencies to your pubspec.yaml file:
dependencies: djangoflow_mixpanel_analytics: <latest_version> djangoflow_analytics: <latest_version> mixpanel_flutter: <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
ActionPeferomers to the
DjangoflowAnalytics instance from
You can then use the
DjangoflowAnalytics.instance.performAction method to send data to Mixpanel Analytics.
final mixpanel = await Mixpanel.init( [MIXPANEL_TOKEN], optOutTrackingDefault: false, trackAutomaticEvents: true, ); final mixpanelAnalyticsEventSender = MixpanelAnalyticEventSender(mixpanel); final mixpanelUserPropertyUpdateder = MixpanelUserPropertyUpdater(mixpanel); final mixpanelUserPropertyRemover = MixpanelUserPropertyRemover(mixpanel); DjangoflowAnalytics.instance.init(); DjangoflowAnalytics.instance.addAllActionPerformers([ mixpanelAnalyticsEventSender, mixpanelUserPropertyUpdateder, mixpanelUserPropertyRemover, ]);
Please find more details regarding it on
We would love to have your help in making Djangoflow Mixpanel Analytics better. If you are interested in contributing to the project, please check out the contribution guidelines. r this package might be useful for them.