1. Knowledge Base
  2. Solution home
  3. Trackier MMP
  4. Trackier SDK

Android SDK Integration


AppAttribution Android SDK provides App Installation and InApp Event tracking functionality. The SDK is robust, lightweight, and easy to integrate.


Integration of SDK in Mobile App

a. Paste the aar file of SDK in the libs folder of the app in which we want to use the SDK.

b. Add the following lines in build.gradle(Module: app);

implementation(name:'trackiersdk-release', ext:'aar')
implementation 'com.google.android.gms:play-services-ads:19.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'

c) Sync the gradle

Steps of using the SDK in code:

a. You will need Global Security Token from your Trackier Account.

Initialize the SDK with the following code. with your SECURITY_TOKEN

TrackierSDK trackierSDK = new TrackierSDK("SECURITY_TOKEN", getApplicationContext());

b. Call function trackData of SDK by using TrackierSDK object

HashMap<String, Object> hashMap = new HashMap<>();
hashMap.put("goal_value", "A is clicked"); hashMap.put("unique_id", "9806");
hashMap.put("amount", 123); hashMap.put("userid", "98766");
trackierSDK.trackData(hashMap); // here hashMap is collection of key-value pair of data which we need to send to server

c. Now publish the app and create a campaign in your Trackier Admin Panel.

Create a Campaign

a. After filling all information while creating the campaign select Trackier App SDK from the Conversion Tracking option. Now save the campaign.

b. Generate Test link from campaign info page and test the attribution.

b. See Reports section for all attribution data.

Feel free to email support@trackier.com for any questions.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article