搜索插件、代码仓与 APP 分类

插件详情v1.1.0

matomo

适用于 Flutter 的跨平台 Matomo 跟踪,使用 Matomo API 并用纯 Dart 编写。

AndroidiOS
近 30 天下载
383
喜欢数
30
Pub 分数
130

安装插件

flutter pub add matomo

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个跨平台的 Flutter 包,用于将 Matomo 分析集成到移动应用程序中,通过 Matomo API 实现事件跟踪和用户行为监控。完全使用 Dart 编写,支持 Android 和 iOS 平台,为开发者提供轻量且高效的解决方案,无需原生代码即可实现注重隐私的分析功能。该包简化了与 Matomo 服务器端跟踪基础设施的集成,确保在各种设备上数据收集的一致性。

适合场景

  • 在移动应用中跟踪用户交互
  • 监控应用程序性能和参与度
  • 收集自定义事件和目标
  • 与现有的 Matomo 分析仪表板集成
  • 支持符合GDPR的数据收集

主要特点

  • 纯 Dart 实现
  • 跨平台支持(Android 和 iOS)
  • Matomo API 兼容性
  • 事件和目标跟踪
  • 轻量且易于集成

适合对象

  • 使用 Matomo 分析的 Flutter 开发人员
  • 需要注重隐私的跟踪的应用程序
  • 需要跨平台一致分析的项目
  • 通过 Matomo 服务器管理分析的团队
  • 开发人员避免使用原生平台特定代码

使用建议

  • 需要一个正在运行的 Matomo 实例
  • 仅限 Matomo 特定功能
  • 该包中没有实时仪表板
  • 取决于 Matomo API 的可用性和配置
  • 手动设置以用于高级跟踪场景

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

matomo

A Dart Client for Matomo. This is completely written in Dart and works cross-platform, including web.

Getting Started

dependencies:
    matomo: ^1.1.0

As early as possible in your application, you need to configure the Matomo Tracker to pass the URL endpoint of your instance and your Site ID.

    await MatomoTracker().initialize(
        siteId: siteId,
        url: 'https://example.com/piwik.php',
    );

If you need to use your own Visitor ID, you can pass it at the initialization of MatomoTracker as is:

    await MatomoTracker().initialize(
        siteId: siteId,
        url: 'https://example.com/piwik.php',
        visitorId: 'customer_1',
    );

To track views simply replace StatelessWidget by TraceableStatelessWidget, StatefulWidget by TraceableStatefulWidget and finally InheritedWidget by TraceableInheritedWidget.

You can also optionally call directly trackScreen or trackScreenWithName to track a view.

For tracking goals and, events call trackGoal and trackEvent respectively.

A value can be passed for events:

MatomoTracker().trackEvent('eventName', 'eventAction', eventValue='eventValue');

Opting Out

If you want to offer a way for the user to opt out of analytics, you can use the setOptOut() call.

MatomoTracker().setOptOut(true);

所属分类

依赖

依赖清单 7 项

源码仓库

使用此插件的项目

暂无相关数据。