plausible_analytics 0.3.0 copy "plausible_analytics: ^0.3.0" to clipboard
plausible_analytics: ^0.3.0 copied to clipboard

A Flutter plugin for Plausible Analytics. This uses the events API to send clickevents and goals to Plausible Analytics.

example/main.dart

import 'package:plausible_analytics/plausible_analytics.dart';

String analyticsUrl = "https://youranalyticsurl.com";
const String analyticsName = "yourappname"; // this is actually the site name

void main() {
  Plausible plausible = Plausible(analyticsUrl, analyticsName);
  // Send goal
  plausible.event(name: 'Device', props: {
    'app_version': 'v1.0.0',
    'app_platform': 'windows',
    'app_locale': 'de-DE',
    'app_theme': 'darkmode',
  });

  // Page open event
  plausible.event(name: "settings_page");

  // Click event
  plausible.event();
}
18
likes
160
points
1.16k
downloads

Publisher

verified publisherbostrot.com

Weekly Downloads

A Flutter plugin for Plausible Analytics. This uses the events API to send clickevents and goals to Plausible Analytics.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, universal_io

More

Packages that depend on plausible_analytics