openpanel_flutter

Last updated:

0 purchases

openpanel_flutter Image
openpanel_flutter Images
Add to Cart

Description:

openpanel flutter

Openpanel Flutter SDK #

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
copied to clipboard
Usage #
Import the package:
import 'package:openpanel_flutter/openpanel_flutter.dart';
copied to clipboard
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());
}
copied to clipboard
Add the OpenpanelObserverif you want to track navigation
Track event #
To track an event, use:
Openpanel.instance.event('event_name', properties: {
...
})
copied to clipboard
Issues #

GitHub Issues
Openpanel Issues

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


Openpanel: Github Repo | Website | Documentation | Author


Maintainer: Steve NOSSE

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.