openpanel_flutter 0.0.4 copy "openpanel_flutter: ^0.0.4" to clipboard
openpanel_flutter: ^0.0.4 copied to clipboard

Openpanel is an open-source alternative to Mixpanel that combines the power of Mixpanel with the ease of Plausible. This package is not officially maintained by the Openpanel team.

Openpanel Flutter SDK #

Non official Flutter SDK for Openpanel, the open source alternative to Mixpanel

Getting started #

  • Install this package from pub.dev
$ flutter pub add openpanel_flutter

Usage #

Import the package:

import 'package:openpanel_flutter/openpanel_flutter.dart';

Then you need to initialize Openpanel before using it:

import 'package:openpanel_flutter/openpanel_flutter.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Openpanel.instance.initialize(
    options: OpenpanelOptions(
        clientId: <YOUR_CLIENT_ID>,
        clientSecret: <YOUR_CLIENT_SECRET>,
    )
  );

  runApp(MyApp());
}

Add the OpenpanelObserverif you want to track navigation

Track event #

To track an event, use:

Openpanel.instance.event('event_name', properties: {
    ...
})

Additional information #

1
likes
0
points
48
downloads

Publisher

verified publisherstevenosse.com

Weekly Downloads

Openpanel is an open-source alternative to Mixpanel that combines the power of Mixpanel with the ease of Plausible. This package is not officially maintained by the Openpanel team.

Repository (GitHub)
View/report issues

Topics

#analytics

License

unknown (license)

Dependencies

device_info_plus, dio, dio_smart_retry, equatable, flutter, logger, package_info_plus, referrer, shared_preferences, ua_client_hints, uuid

More

Packages that depend on openpanel_flutter