Android App Tracking SDK for Conversion Tracking

Use this option to integrate a slim class for conversion tracking on Android.

Download the latest Android App Tracking SDK

Note: By downloading the App Tracking SDK for conversion tracking, you are agreeing to the terms and conditions in the license agreement in the source code. Please read the license agreement before using this product.

Step 1: Add the MMConversionTracking.java file to your project

The file must be placed within the com.millennialmedia.conversiontracking package which will need to be created by the developer

Step 2: Add the INTERNET permission to your AndroidManifest.xml.

<uses-permission android:name="android.permission.INTERNET" />

Step 3: Update the project to utilize the google play services library

Details regarding setup can be found within the official Android documentation

Step 4: Add the conversion tracking code.

Add the conversion tracking code to your Application or Activity onCreate method using your App Tracking ID.

@Override
public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    MMConversionTracking.trackConversion(this, <YOUR_APP_TRACKING_ID>);
}

Note: Please replace <YOUR_APP_TRACKING_ID> in the example above with the App Tracking ID surrounded by quotation marks (e.g., “12345”).

Step 5: Verify integration

If the tracking SDK is integrated correctly, upon launch a similar log entry to the one below will be seen within the logcat output:

I/MMConversionTracking(10584): Conversion tracker update successful



Don’t have an App Tracking ID? Go to mmedia.com to set one up by following these instructions, or contact your Account Manager or contact us to get an App Tracking ID.

For More Information