English

Preinstalled apps

You can use the Adjust SDK to check if your app came preinstalled on a user's device. To do this, you need to set a default tracker:

  1. Create a new tracker in your Adjust dashboard. This will be used as your default tracker to track whether your app was preinstalled.
  2. Open your app delegate file. Call the setDefaultTracker method on your ADJConfig instance. The dashboard will display your tracker in a URL like this: https://app.adjust.com/abc123. Your tracker token is the six or seven digit code at the end.
Objective-C
Swift
Javascript
[adjustConfig setDefaultTracker:@"{TrackerToken}"];
  1. Build and run your app. If you have logging enabled, you should see a message in your log like this: Default tracker: 'abc123'.