Implementing the Stoobit Analytics Tool in your flutter application.
Track pre-defined and custom events to better understand your audience.
- Sign up on analytics.stoobit.com or host your own stoobit analytics version.
- Add a new project and note the api key in the project settings.
- Run
flutter pub add stoobit_analyticsto add this dependency in your pubspec.yaml - Add this to your main function:
void main() {
StoobitAnalytics.init(
key: "<YOUR-API-KEY>",
);
runApp(const MyApp());
}- To track screen events, put this at the beginning of your MaterialApp. Please use named Routes
return MaterialApp(
navigatorObservers: [
StoobitAnalytics.navigatorObserver,
],
...
);TODO: Include short and useful examples for package users. Add longer examples
to /example folder.
const like = 'sample';TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.