Skip to main content

Preinstalled apps (Default Tracker)

You can use the Adtrace 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 Adtrace panel. 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 ADTConfig instance. The panel will display your tracker in a URL like this: https://app.adtrace.io/abc123. Your tracker token is the 6 to 8 digit code at the end.
[adtraceConfig 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'.