Skip to content
pubscout

plausible_analytics

0.4.1, released 2 months ago by bostrot.com

Send pageviews and custom events to Plausible Analytics

Copyleft license
$ flutter pub add plausible_analytics
Source repository

What it does

A Flutter plugin for Plausible Analytics that uses the events API to send click events, pageviews, and custom goals. It supports optional revenue tracking, custom properties, and includes a navigator observer to automatically track screen transitions.

AI-written summary of version 0.4.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to integrate Plausible Analytics into a Flutter application
  • You need privacy-friendly analytics tracking with custom properties and revenue

Skip it when

  • You are using a different analytics backend like Firebase or Sentry

Strengths

  • Privacy friendly analytics integration
  • Includes a NavigatorObserver for automatic pageview tracking
  • Supports custom properties, revenue tracking, and non-interactive events

Weaknesses

  • Limited to Plausible Analytics backend

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Android release mode requires the internet permission in the AndroidManifest.xml.

const String serverUrl = "https://plausible.io";
const String domain = "yourapp.com";

final plausible = Plausible(serverUrl, domain);
final event = plausible.event(name: 'conversion', page: 'homescreen');

Alternatives

Packages that do the same job and could replace plausible_analytics.

  • ambilytics

    Google Analytics wrapper for all Flutter platforms including Windows and Linux

  • analytics_gen

    Type-safe analytics event tracking generated from YAML configuration.

  • isolate_logger

    A logger utility utilizing Isolates to write console and file logs asynchronously.

Works with

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