Send your event data from RudderStack to Kochava.

Kochava is a leading mobile measurement and app analytics platform that offers unique dynamic deep linking, audience segmenting and data accessibility features for your business.

Find the open source transformer code for this destination in the GitHub repository.

Connection compatibility

Destination Information
  • Status: Generally Available
  • Supported sources: Android (Java) , Android (Kotlin) , iOS (Obj-C) , iOS (Swift) , Web, Unity, AMP , Cloud, Warehouse, React Native , Flutter, Cordova, Shopify
  • Refer to it as Kochava in the Integrations object.
Connection Modes
SourceCloud modeDevice modeHybrid mode
AMPsupportednot supportednot supported
Android (Java)supportedsupportednot supported
Android (Kotlin)supportednot supportednot supported
Cloudsupportednot supportednot supported
Cordovasupportednot supportednot supported
Fluttersupportedsupportednot supported
iOS (Obj-C)supportedsupportednot supported
iOS (Swift)supportednot supportednot supported
React Nativesupportednot supportednot supported
Shopifysupportednot supportednot supported
Unitysupportednot supportednot supported
Warehousesupportednot supportednot supported
Websupportednot supportednot supported
Supported Message Types
SourceIdentifyPageTrackScreenGroupAliasRecordAudienceList
Cloud mode
Supported sourcesnot supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported
Device mode
Android (Java)not supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported
iOS (Obj-C)not supportednot supportedsupportedsupportednot supportednot supportednot supportednot supported

Get started

Once you have confirmed that the source platform supports sending events to Kochava, follow these steps:

  1. From your RudderStack dashboard, add a source. Then, from the list of destinations, select Kochava.
  2. Assign a name to the destination and click Continue.

Connection settings

To successfully configure Kochava as a destination, you will need to configure the following settings:

  • App GUID: Kochava generates a unique ID for your application called the App GUID. You can find this ID by going to your Kochava account and navigating to Apps & Assets > All Apps. You can then select your app to the view the App GUID.

The following two settings are applicable for iOS device mode only:

  • Enable AppTrackingTransparency (ATT): Enable this setting if you want to enable the AppTrackingTransparency feature provided by the Kochava iOS SDK.
Make sure to include the key NSUserTrackingUsageDescription in your info.plist along with a string value explaining why you are requesting authorization to track.
  • Enable skAdNetwork: Enable this setting if you want to enable the skAdNetwork feature provided by the Kochava iOS SDK.

Adding device mode integration

Follow the below steps to add Kochava to your Flutter Project:

  1. Add the following dependency to the dependencies section of your pubspec.yaml file:
yaml
rudder_integration_kochava_flutter: ^1.0.1
  1. Run the below command to install the dependency added in the above step:
groovy
flutter pub get
  1. Import RudderIntegrationKochavaFlutter in your application where you are initializing the SDK:
dart
import 'package:rudder_integration_kochava_flutter/rudder_integration_kochava_flutter.dart';
  1. Finally, change the initialization of your RudderClient as shown:
dart
final RudderController rudderClient = RudderController.instance;
RudderConfigBuilder builder = RudderConfigBuilder();
builder.withFactory(RudderIntegrationKochavaFlutter())
rudderClient.initialize(<write_key>, config: builder.build(), options: null);

Track

The track method lets you capture user events along with the properties associated with them.

RudderStack transforms the following events to Kochava’s standard events:

RudderStack eventKochava standard event
Product AddedAdd to Cart
Product Added to WishlistAdd to Wishlist
Checkout StartedCheckout Start
Order CompletedPurchase
Product ReviewedRating
Products SearchedSearch

Note that:

  • RudderStack sends the rest of the events to Kochava as custom events.
  • You can send an event with the name same as that of a Kochava standard event. Kochava accepts it as a standard event.

A sample track event sent to Kochava:

objectivec
[[RudderClient sharedInstance] track:@"Product Added" properties:@{
@"price": @2.0,
@"product_id": @"product_id_a",
@"product_name": @"Product Name A"
}];

RudderStack changes the Product Added event to Add to Cart before passing it to Kochava along with the associated properties.

Screen

The screen call lets you record whenever your user views their mobile screen, with any additional relevant information about the screen.

RudderStack sends the screen event to Kochava as a custom event.

A sample screen call is shown below:

kotlin
MainApplication.rudderClient.screen(
    "Sample Screen Name",
    RudderProperty().putValue("prop_key", "prop_value")
)

In the above snippet, RudderStack captures all information related to the viewed screen, along with any additional info associated with that event. In Kochava, the above screen call is shown as “screen view Sample Screen Name along with the properties.

Configuring push notifications

Follow these steps to configure push notifications for Kochava for the platform of your choice:

  1. Register push notifications for your Android device in the Kochava dashboard.
  2. Add the following dependency in your project level build.gradle file inside the buildscript:
groovy
dependencies {
        classpath 'com.google.gms:google-services:4.3.5'
 }
  1. Next, add the following dependencies and plugin to your app level build.gradle file:
groovy
dependencies {
// for push notifications
    implementation 'com.google.firebase:firebase-messaging:21.1.0'
}
apply plugin: 'com.google.gms.google-services'
  1. Place the google-services.json downloaded from the Firebase console into the root folder of your app.
  2. Passing the new Push Token received from FCM to the Kochava SDK. For more information, look into the sample-kotlin app.
kotlin
// Extending FirebaseMessagingService class
class MyFirebaseMessagingService : FirebaseMessagingService() {
    // The onNewToken callback fires whenever a new token is generated.
    override fun onNewToken(token: String) {
        super.onNewToken(token)
        // Method to pass the push token to the Kochava native sdk
        registeredForPushNotificationsWithFCMToken(token)
    }
}

FAQ

Where do I get the Kochava App GUID?

To get your Kochava app GUID, follow these steps:

  1. Log in to Kochava. Then, go to your account and select the application for the specific campaign.
  2. Under Apps & Assets, select All Apps
  3. Click the desired app for which you want the procure the App GUID.
  4. You will be able to see the App GUID under the title of your application, within the details.

For more information, see the Kochava support guide.


Questions? Let's figure it out together.

Join the RudderStack Slack community to connect with other users, customers, and the RudderStack team — or reach out for direct support.