matomo-org/matomo-sdk-android
matomo-org/matomo-sdk-android has 426 GitHub stars and 167 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-10 04:23 UTC. Last push 2026-09-07.
SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalMatomo 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.
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,486 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,790 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,332 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,455 stars