djangoflow_mixpanel_analytics 0.1.0+2 copy "djangoflow_mixpanel_analytics: ^0.1.0+2" to clipboard
djangoflow_mixpanel_analytics: ^0.1.0+2 copied to clipboard

A library provides an easy and organized way to implement Mixpanel Analytics for your Flutter apps.

djangoflow_mixpanel_analytics is a library built on top of the analytics and mixpanel_flutter packages for Flutter. It provides an easy and organized way to implement Mixpanel Analytics for your Flutter apps.

Features #

  • 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.

Note #

Please make sure to follow the guides by mixpanel_flutter see the documentation

Usage #

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:

import 'package:djangoflow_mixpanel_analytics/djangoflow_mixpanel_analytics.dart';

You will need to initialize the library and add the MixpanelAnalyticEventSender, MixpanelUserPropertyRemover and MixpanelUserPropertyUpdater ActionPeferomers to the DjangoflowAnalytics instance from djangoflow_analytics package.

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 djangoflow_analytics package.

Contribution #

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.

0
likes
110
pub points
0%
popularity

Publisher

verified publisherapexive.com

A library provides an easy and organized way to implement Mixpanel Analytics for your Flutter apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

analytics, djangoflow_analytics, flutter, mixpanel_flutter, mockito

More

Packages that depend on djangoflow_mixpanel_analytics