项目
在 GitHub 查看
matomo-org/matomo-sdk-android
matomo-org/matomo-sdk-android has 426 GitHub stars and 166 forks. GitHot measured 0 stars in 24 hours, -1 in 7 days, and 0 in 15 days. Last checked 2026-11-21 16:57 UTC. Last push 2026-09-07.
实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!
数据README.md
原文Matomo SDK for Android
Welcome to the Matomo Tracking SDK for Android. This library helps you send analytics data from Android apps to Matomo instances. Until v4 this library was known as Piwik Tracking SDK for Android.
Features:
- Caching and offline support
- Graceful reconnection handling
- WIFI-only mode
- Thread-safe support for multiple trackers
- Support for custom connection implementations
- Complete Matomo HTTP API support
- Checksum based app install/upgrade tracking
Quickstart
For the not so quick start, see here or look at our demo app
- Setup Matomo on your server.
- Include the library in your app modules
build.gradlefile via JitPack
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.matomo-org:matomo-sdk-android:<latest-version>'
}
- Now you need to initialize your
Tracker. It's recommended to store it as singleton. You can extendMatomoApplicationor create and store aTrackerinstance yourself:
import org.matomo.sdk.TrackerBuilder;
public class YourApplication extends Application {
private Tracker tracker;
public synchronized Tracker getTracker() {
if (tracker == null){
tracker = TrackerBuilder.createDefault("http://domain.tld/matomo.php", 1).build(Matomo.getInstance(this));
}
return tracker;
}
}
- The
TrackHelperclass is the easiest way to submit events to your tracker:
// The `Tracker` instance from the previous step
Tracker tracker = ((MatomoApplication) getApplication()).getTracker();
// Track a screen view
TrackHelper.track().screen("/activity_main/activity_settings").title("Settings").with(tracker);
// Monitor your app installs
TrackHelper.track().download().with(tracker);
- Something not working? Check here.
License
Android SDK for Matomo is released under the BSD-3 Clause license, see LICENSE.
探索相关项目
加载中…