Support Home > SDK Integration > SDK – KochavaTracker

SDK – KochavaTracker

SDK

KochavaTracker (Adobe Air)


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

 

Platforms:

  • Android
  • iOS

 

Requirements:

  • Android API 14
  • Xcode 8.0
  • Adobe AIR – 18.0 or higher

Integration

  1. Add the SDK into your project.

     

    GMS Variant:

    This includes Google Mobile (Play) Services bundled for you and does not require you to manually add Google Mobile Services to be able to perform attribution based on the Android Advertising Identifier.

     

    Standard Variant:

    If you are already using Google Mobile Services in your app, you can use this variant instead which does not have Google Mobile Services bundled. For Play Services version 15 and up ensure you include “play-services-ads-identifier” and its dependencies which at this time includes “play-services-basement”. When using a previous version of Google Play Services include “play-services-base” and “play-services-basement”.

     

    1. Create a new Android or iOS project.
    2. Choose File>Publish Settings.
    3. Select the wrench icon next to Script for ActionScript Settings.
    4. Select the Library Path tab.
    5. Click Browse for Native Extension (ANE) File and select the com.kochava.extensions.Kochava.ane file.
    6. Click OK.
    7. Select the wrench icon next to Target for Player Settings.
    8. Select the Permissions tab, and enable:
      • INTERNET
      • ACCESS_NETWORK_STATE
      • ACCESS_WIFI_STATE
    9. Check the Manually manage permissions and manifest additions for this app box.
    10. Click OK.

    1. Go to Project Properties.
    2. Select Native Extensions under Actionscript Build Path.
    3. Choose Add ANE… and navigate to the com.kochava.extensions.Kochava.ane file.
    4. Select Actionscript Build Packaging > Google Android (or iOS if building for that target).
    5. Select the Native Extensions tab, and click the Package checkbox next to the extension.

     

    Update Application Descriptor:

    For Kochava to work, changes are required to the application XML file for the app. Modify the XML file created by your IDE with the following changes:

    1. Set your AIR SDK to 18.0 or higher in the app descriptor file.
    2.  

    3. Include a link to the extension in the descriptor.
    4.  

    5. Update your Android Manifest Additions in the XML element.

     

  2. Configure a Tracker
    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.


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 see configure Intelligent Consent Management. For code-level integration see the configuration parameter Intelligent Consent Management.


References

Additional features and usage details are available in the reference.

KochavaTracker Adobe Air 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: May 22, 2018 at 11:06 am