Support Home > SDK Integration > SDK – KochavaTracker

SDK – KochavaTracker


KochavaTracker (PhoneGap/Cordova)

A lightweight and easy to integrate SDK written in JavaScript that wraps the native Android and iOS SDKs, providing first-class integration with Kochava’s installation attribution and analytics platform.


  • Android
  • iOS

Minimum Requirements

  • Android API 14
  • Xcode 8.0

SDK Integration

  1. Download the SDK:
  2. Add the SDK to your project:
    1. Using a terminal navigate to the root directory of your Cordova Project.
    2. Ensure your project contains Android and/or iOS platforms.
    3. Run the following command where sdk_path is the location of the unzipped Kochava Cordova SDK.
  3. Configure a Tracker
  4. To configure the Tracker, first create an object, and then set your App GUID per platform and add any additional configuration items into it before performing configuration by calling the configure method. This should be done in the logic of your application where things first start up such as the deviceready event.

Using the SDK

Sending Events:

More than basic analytics, the events you send to Kochava are associated with your install attribution data, so that you can understand how the users who came to you through a particular ad went on to use the various features within your app. For more information, refer to sendEventMapObject.


Setting Identity Link:

You can link additional identifying information with an install, where it can be integrated with your analytics. For more information see setIdentityLink.


Getting Attribution:

You can retrieve Kochava’s attribution information within your app. For more information see getAttribution.


Getting the Device ID:

You can get the unique device identifier used by the tracker. For more information see getDeviceId.


Adjusting the Log Level:

You can specify the types of entries which the tracker prints to the log. For more information see Configure Log Level Enum Values.


Intelligent Consent Management:

When intelligent consent management is enabled and configured within your Kochava dashboard, the SDK will indicate when the user should be prompted for consent. It will also not gather, persist, or transmit data which requires consent unless consent has been granted. For more information refer to our Intelligent Consent Management support documentation. For code-level integration see the configuration parameter Intelligent Consent Management.


KochavaTracker PhoneGap/Cordova Methods

A list of methods available to send to the Kochava Server.

Post-Install Events

A list of the standard events that can be passed to Kochava.


Last Modified: Jul 12, 2018 at 4:27 pm