Skip to content

Records user activity and automatically sends tracking events to an analytics cloud service.

Notifications You must be signed in to change notification settings

rakutentech/android-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Rakuten Analytics SDK for Android

The Analytics module enables applications to record user activity and automatically send tracking events to a configured endpoint.

This SDK supports Android API level 23 (Marshmallow) and above and has been tested with Android API level 23 (Marshmallow) and above. It is intended to be used only by Rakuten approved applications.

This repository contains the published Analytics artifacts using GitHub Packages.

Getting started

To access and use the Analytics artifacts, you must add the Analytics GitHub Packages repository to your project's Gradle config.

repositories {
  maven("https://maven.pkg.github.com/rakutentech/android-analytics") {
    credentials {
      username = "your_github_username"
      password = "your_github_personal_access_token"
    }
  }
}

dependency {
  implementation 'com.rakuten.tech.mobile.analytics:analytics:${latest_version}'
}

You will need to have an access token with read:packages scope to be able to install a GitHub package.

To get a token, go to the Settings page on your GitHub account. Go to Developer settings > Personal access tokens and generate a new token.

See About Tokens for more details.

SDK Integration

#1 Configure RAT Tracker in your app's AndroidManifest.xml

<manifest>
  <application >
    <meta-data  android:name="com.rakuten.tech.mobile.analytics.RATAccountId"
                android:value="YOUR_RAT_ACCOUNT_ID" />
    <meta-data  android:name="com.rakuten.tech.mobile.analytics.RATApplicationId"
                android:value="YOUR_RAT_APPLICATION_ID" />
    <meta-data  android:name="com.rakuten.tech.mobile.analytics.RATEndpoint"
                android:value="YOUR_ENDPOINT" />
  </application>
</manifest>

#2 Track an event

// Create Map for Parameters
Map<String, Object> params = new HashMap<>();
params.put("foo", "bar");

// Create event track it
RatTracker.event("click", params).track();

For more information (including full configuration instructions, how to get support, API usage, and a full change log) please visit the internal documentation site of the android-analytics SDK or raise an inquiry with your Rakuten contact.

About

Records user activity and automatically sends tracking events to an analytics cloud service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages