matomo_tracker
6.1.1, released 6 months ago by floating-dartists.dev
Cross-platform Matomo tracking client for analytics in Flutter apps.
What it does
Wraps the Matomo Tracking API to send page views, goals, and events from a Flutter application. Supports global or local route observation, custom dimensions, cookieless tracking, and persistent dispatch queues.
AI-written summary of version 6.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate Matomo analytics into your Flutter cross-platform app.
- You require automatic screen tracking via navigator observers or specific widget/state mixins.
Skip it when
- You prefer using a different analytics platform such as Firebase or Sentry.
- You do not use Matomo as your analytics backend.
Strengths
- Fully cross-platform support (Android, iOS, Web, Windows, macOS, Linux).
- Offers both global and local navigator observers as well as state mixins for precise tracking.
- Supports persistent dispatching so queued actions aren't lost if the app terminates.
Weaknesses
- Tied strictly to the Matomo tracking API ecosystem.
- Requires proper configuration of site ID and tracking endpoints.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Initialize the tracker early in your application lifecycle with your site ID and Matomo URL endpoint.
await MatomoTracker.instance.initialize(
siteId: siteId,
url: 'https://example.com/matomo.php',
);Alternatives
Packages that do the same job and could replace matomo_tracker.
- sentry_flutter
Pick if you want error tracking, crash reporting, and performance monitoring instead of web/app usage analytics.
95Compare - mixpanel_flutter
Pick if you prefer Mixpanel as your product analytics platform.
82Compare
Works with
Packages commonly used together with matomo_tracker: ones it builds on, ones built on it, and its own family.
- uuidmatomo_tracker depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- clockmatomo_tracker depends on itA fakeable wrapper for dart:core clock APIs.
- shared_preferencesmatomo_tracker depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- package_info_plusmatomo_tracker depends on itFlutter plugin to query app package info like version, build number and installer store.
- device_info_plusmatomo_tracker depends on itProvides detailed information about the current device, make, model, and OS version.