openpanel_flutter 0.0.4
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 OpenpanelObserver
if you want to track navigation
Track event #
To track an event, use:
Openpanel.instance.event('event_name', properties: {
...
})
Additional information #
- Openpanel: Github Repo | Website | Documentation | Author
- Maintainer: Steve NOSSE