Pre Installed Trackers - adjust/cordova_sdk GitHub Wiki
If you want to use the adjust SDK to recognize users that found your app pre-installed on their device, follow these steps.
-
Create a new tracker in your [dashboard].
-
Open your app delegate and add set the default tracker of your
AdjustConfig
instance:var adjustConfig = new AdjustConfig(appToken, environment); adjustConfig.setDefaultTracker("{TrackerToken}"); Adjust.create(adjustConfig);
Replace {TrackerToken}
with the tracker token you created in step 2. Please note that the dashboard displays a tracker
URL (including http://app.adjust.com/
). In your source code, you should specify only the six-character token and not the
entire URL.
-
Build and run your app. You should see a line like the following in the app's log output:
Default tracker: 'abc123'