Documentation > Dashboard User Guide

Adjust Tracking

CleverTap helps you track mobile app installations via Adjust.

The Adjust SDK must be separately integrated in your app

After your app has been installed from an Adjust media source, you can retrieve the install data using the Adjust SDK in your app, and let CleverTap know about the installation source, medium, and campaign.

Once you integrate Adjust and CleverTap as shown below, the install attribution data will show up in the specific Campaign Dashboard.

Android Integration

In your first activity, add the below listed code before you initialize the Adjust SDK (before the line Adjust.onCreate(config);)

String appToken = "{ADJUST_APP_TOKEN}";
String environment = AdjustConfig.ENVIRONMENT_PRODUCTION;
AdjustConfig config = new AdjustConfig(this, appToken, environment);

config.setOnAttributionChangedListener(new OnAttributionChangedListener() {
    @Override
    public void onAttributionChanged(AdjustAttribution attribution) {
        String source = attribution.network;
        String medium = attribution.trackerName;
        String campaign = attribution.campaign;
        cleverTap.pushInstallReferrer(source, medium, campaign);
    }
});
Adjust.onCreate(config);
copy Copied

iOS Integration

Update your app delegate’s interface declaration to include the AdjustDelegate protocol:

#import <UIKit/UIKit.h>
#import "Adjust.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, AdjustDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
copy Copied

Implement the method adjustAttributionChanged: in your app delegate:

- (void) adjustAttributionChanged:(ADJAttribution *)attribution {
    NSString *campaign = attribution.campaign;
    NSString *source = attribution.network;
    NSString *medium = attribution.trackerName;

    [CleverTap pushInstallReferrer source:source medium:medium campaign:campaign];
}
copy Copied

Update your application:didFinishLaunchingWithOptions: to set the Adjust delegate:

- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *) launchOptions {
    ...
    NSString *yourAppToken = @"{ADJUST_APP_TOKEN}";
    NSString *environment = ADJEnvironmentProduction;
    ADJConfig *adjustConfig = [ADJConfig configWithAppToken:yourAppToken
                                                environment:environment];

    [adjustConfig setDelegate:self];
    [Adjust appDidLaunch:adjustConfig];
    ...
    return YES;
}
copy Copied

Finding users

To find those users that were acquired via a particular app install campaign, follow these steps –

  • Go to CleverTap Dashboard -> Find users
  • Select App Launched as the “DID” event
  • Select First Time as “Yes” as shown below,
  • Select UTM Source and set the appropriate value