Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!

License

NotificationsYou must be signed in to change notification settings

matomo-org/matomo-sdk-android

Repository files navigation

BuildCodecov

Welcome to theMatomo Tracking SDK for Android. This library helps you send analytics data from Android apps to Matomo instances. Until v4 this library was known asPiwik Tracking SDK for Android.

Features:

Quickstart

For the not so quick start,see here or look at ourdemo app

repositories {  maven { url'https://jitpack.io' }}dependencies {  implementation'com.github.matomo-org:matomo-sdk-android:<latest-version>'}
  • Now you need to initialize yourTracker. It's recommended to store it as singleton. You can extendMatomoApplication or create and store aTracker instance yourself:
importorg.matomo.sdk.TrackerBuilder;publicclassYourApplicationextendsApplication {privateTrackertracker;publicsynchronizedTrackergetTracker() {if (tracker ==null){tracker =TrackerBuilder.createDefault("http://domain.tld/matomo.php",1).build(Matomo.getInstance(this));        }returntracker;    }}
  • TheTrackHelper class is the easiest way to submit events to your tracker:
// The `Tracker` instance from the previous stepTrackertracker = ((MatomoApplication)getApplication()).getTracker();// Track a screen viewTrackHelper.track().screen("/activity_main/activity_settings").title("Settings").with(tracker);// Monitor your app installsTrackHelper.track().download().with(tracker);
  • Something not working? Checkhere.

License

Android SDK for Matomo is released under the BSD-3 Clause license, seeLICENSE.

About

SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors20


[8]ページ先頭

©2009-2025 Movatter.jp