adjust-icon

Send preinstalled app activity

You can use the Adjust SDK to record activity from apps that came preinstalled on a user’s device. This enables you to send information from users who didn’t download your app from a campaign.

Your config object contains a boolean preinstallTrackingEnabled property that controls this feature. To enable preinstall measurement, assign a boolean value to the preinstallTrackingEnabled property of your config object.

const adjustConfig = new AdjustConfig(
"{YourAppToken}",
AdjustConfig.EnvironmentSandbox,
);
//...
adjustConfig.setPreinstallTrackingEnabled(true);
//...
Adjust.create(adjustConfig);

Configuring a default link token enables you to attribute all preinstalls to a predefined Adjust link. Adjust records all information against this token until the attribution source changes. To set this up:

  1. Create a new campaign link in Campaign Lab.

    https://app.adjust.com/{token}
  2. Copy this token and assign it to the defaultTracker property of your config object.

    const adjustConfig = new AdjustConfig(
    "{YourAppToken}",
    AdjustConfig.EnvironmentSandbox,
    );
    //...
    adjustConfig.setDefaultTracker("{TrackerToken}");
    //...
    Adjust.create(adjustConfig);
  3. Build and run your app. If you have logging enabled, you should see a message in your log

    Default tracker: 'abc123'.