Skip to main content

Disable Organic Tracking

SDK Version Selection

Choose your SDK version below:

  • Apptrove SDK → Recommended for all projects (Latest: v2.x.x)
  • Trackier SDK → Will be deprecated in August 2026 (v1.x.xx)

Use the tabs below to view disable organic tracking code for your chosen SDK.

Disabling organic tracking allows you to exclude non-attributed (organic) installs and events from analytics, focusing only on campaign-driven traffic. This is useful for analyzing paid campaigns without organic data interference. Enable this feature by setting disableOrganicTracking(true) during SDK configuration.

Overview​

Organic tracking records installs and events from users who find your app naturally (e.g., via Play Store searches). Disabling it ensures only campaign-attributed data is tracked:

  • Purpose: Filter out organic installs to focus on paid campaign performance.

Implementation​

Configure the SDK to disable organic tracking in your Application class by calling disableOrganicTracking(true) before initialization.

import android.app.Application;
import com.apptrove.sdk.AppTroveSDK;
import com.apptrove.sdk.AppTroveSDKConfig;
import java.util.HashMap;

public class MainApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
final String SDK_KEY = "XXXXXXX-XXXX-XXXX-80e3-5938fadff"; // Please pass your SDK key here.

/* While Initializing the SDK, You need to pass the three parameters in the AppTroveSDKConfig.
* In First argument, you need to pass context of the application
* In second argument, you need to pass the SDK api key
* In third argument, you need to pass the environment which can be either "development", "production" or "testing". */
AppTroveSDKConfig sdkConfig = new AppTroveSDKConfig(this, SDK_KEY, "development");

sdkConfig.disableOrganicTracking(true); // Pass true value for disable organic tracking.

AppTroveSDK.initialize(sdkConfig);
}
}