openpanel_flutter 0.0.6 copy "openpanel_flutter: ^0.0.6" to clipboard
openpanel_flutter: ^0.0.6 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 #

Package on pub.dev

Non official Flutter SDK for Openpanel, the open source alternative to Mixpanel, GA & Plausible.

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: {
    ...
})

Issues #

Contributing #

If you wish to contribute, please send a PR to the Github Repo

Credits #

0
likes
120
pub points
38%
popularity

Publisher

verified publisherstevenosse.com

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

Documentation

API reference

License

AGPL-3.0 (LICENSE)

Dependencies

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

More

Packages that depend on openpanel_flutter