Documentation > Measuring Attribution



You can use Branch to send install events for your app to CleverTap. Branch also sends campaign ​and channel​ analytics tags that are attached to the link that drove the events. This will allow you to analyze which campaigns and channels are helping you acquire users in CleverTap. Along with the events, Branch will also send your CleverTap attribution ID, allowing your Branch event data to fit directly in with your CleverTap user identifiers.


Currently, this Data Integration is not self-serve, you must contact a Branch point of contact for setup. Here are the steps that you have to follow

Credential Configuration

  • In your Branch dashboard, navigate to “Account Settings” and save your app ID

  • Go to your CleverTap dashboard and navigate to “Settings” and look for your “Account ID”, “Account token”, and “Passcode”

Screen Shot 2017-10-05 at 11.31.43 AM

  • Give these 3 data fields to your Branch point of contact

Passing Attribution ID

To complete this integration, you need to add a couple of lines of code to your Android and iOS projects.


In your Android app, before ​you ​initialize ​in ​your Application ​onCreate() ​or ​Deep ​Link ​Activity’s ​onCreate().

Add the following code snippet

Branch branch = Branch.getInstance();
copy Copied

Objective C/Swift

Inside didFinishLaunchingWithOptions

Select Platform
Branch *branch = [Branch getInstance];
[CleverTap autoIntegrate];
[[Branch getInstance] setRequestMetadataKey:@"$clevertap_attribution_id"
value:[[CleverTap sharedInstance] profileGetCleverTapAttributionIdentifier]];
copy Copied
if let branch = Branch.getInstance() {
value:CleverTap.sharedInstance()?profileGetCleverTapAttributionIdentifier() as
copy Copied