page_analytics 1.0.6
page_analytics: ^1.0.6 copied to clipboard
A Flutter plugin for tracking page views and time spent on each page in your application. Provides callbacks for page start and stop events, allowing easy integration with custom analytics systems.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add page_analyticsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
page_analytics: ^1.0.6Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:page_analytics/page_analytics.dart';