simplytics library

Simple and lightweight Analytics and Crash Reporting abstraction.

Classes

Simplytics
The main Simplytics class that allows you to configure analytics and error monitoring services and gives access to them through properties.
SimplyticsAnalyticsInterface
Exposes all analytic methods for implementation.
SimplyticsAnalyticsServiceGroup
A class that allows you to use multiple analytics services at the same time.
SimplyticsCrashlogInterface
Exposes all error monitoring methods for implementation.
SimplyticsCrashlogServiceGroup
A class that allows you to use several error monitoring services at the same time.
SimplyticsDebugAnalyticsService
Analytics service for debugging, outputs all events to the system log, if enabled.
SimplyticsDebugCrashlogService
Error monitoring service for debugging, outputs all events to the system log, if enabled.
SimplyticsDefaultAnalyticsService
The default analytics service (used if no other is installed via Simplytics.setup) is just a stub that does nothing.
SimplyticsDefaultCrashlogService
The default error monitoring service (used if no other is installed via Simplytics.setup) is just a stub that does nothing.
SimplyticsErrorInformationProperty
Base class for additional information attached to an error report.
SimplyticsErrorProperty
Allows you to add an informational property to an error message when reporting it to the error monitoring system.
SimplyticsErrorTag
Allows you to tag an error message when reporting it to the error monitoring system.
SimplyticsEvent
An interface that allows you to create type safe analytics events.
SimplyticsEventData
A class that describes the event to send to the analytics service (used in SimplyticsEvent).
SimplyticsNavigatorObserver
A NavigatorObserver that sends events to analytics service when the currently active ModalRoute changes.

Functions

defaultNameExtractor(Route route) String?
The default function to extract the route name from Route.settings.name.
defaultRouteFilter(Route? route) bool
Default route filter, specifies to track only the PageRoute and its descendants.
runAppGuarded(Future<Widget> runner(), {required void onError(Object error, StackTrace? stackTrace)?, bool ensureInitialized = true, bool runAppAfterSetup = false}) Future<void>
Runs the application, catches all unhandled errors and exceptions, then passes them to the onError handler.

Typedefs

RouteFilter = bool Function(Route? route)
RouteFilter allows to filter out routes that should not be tracked.
ScreenNameExtractor = String? Function(Route route)
Signature for a function that extracts a screen name from Route.settings.