Skip to main content

Pre-install tracking (default tracker)

If you want to use the Adtrace SDK to recognize users whose devices came with your app pre-installed, follow these steps:

  • Create a new tracker in the panel.
  • Open your app delegate and set the default tracker of your config:
adtraceConfig.setDefaultTracker("{TrackerToken}");
  • Replace {TrackerToken} with the tracker token you created in step one. Please note that the panel displays a tracker URL (including http://app.adtrace.io/). In your source code, you should specify only the six or seven-character token and not the entire URL.

  • Build and run your app. You should see a line like the following in your LogCat:

Default tracker: 'abc123'