Skip to content
pubscout

matomo_tracker

6.1.1, released 6 months ago by floating-dartists.dev

Cross-platform Matomo tracking client for analytics in Flutter apps.

$ flutter pub add matomo_tracker
Source repository

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.

  • mixpanel_flutter

    Pick if you prefer Mixpanel as your product analytics platform.

Works with

Packages commonly used together with matomo_tracker: ones it builds on, ones built on it, and its own family.