Skip to main content

herald_mixpanel 1.0.0-dev.1 copy "herald_mixpanel: ^1.0.0-dev.1" to clipboard
herald_mixpanel: ^1.0.0-dev.1 copied to clipboard

A Herald vendor adapter that sends to Mixpanel: events, user profile and super properties.

Herald for Mixpanel #

Sends Herald events and properties to Mixpanel, over mixpanel_flutter: events, the People profile and super properties.

final mixpanel = await Mixpanel.init(
  projectToken,
  trackAutomaticEvents: false,
  optOutTrackingDefault: true, // silent until consent
);
final tracker = MixpanelAnalyticsTrackerService(
  eventTrackerFactory: CompositeMixpanelEventTrackerFactory([
    ScreenViewMixpanelEventTrackerFactory(mixpanel),
    GenericMixpanelEventTrackerFactory(mixpanel),
  ]),
  propertySetterFactory: CompositeMixpanelPropertySetterFactory([
    UserPropertyMixpanelPropertySetterFactory(mixpanel), // People profile: must come first
    GenericMixpanelPropertySetterFactory(mixpanel), // super properties
  ]),
);
final service = MixpanelAnalyticsService(mixpanel);

Values keep their types. A UserProperty goes to the People profile and any other property becomes a super property. Revoking consent flushes, then opts out.

Documentation #

The Herald website has the guides, and the repository has the other packages and an example app.

0
likes
0
points
559
downloads

Publisher

unverified uploader

Weekly Downloads

A Herald vendor adapter that sends to Mixpanel: events, user profile and super properties.

Repository (GitHub)
View/report issues

Topics

#analytics #mixpanel #tracking

License

unknown (license)

Dependencies

flutter, herald, mixpanel_flutter

More

Packages that depend on herald_mixpanel