Reattribution via deeplink
Adtrace enables you to run re-engagement campaigns with deep links.
If you are using this feature, you need to make one additional call to the Adtrace SDK in your app for us to properly reattribute your users.
To reattribute your user, you need to make an extra call to the Adtrace SDK within your app. Add a call to the appWillOpenUrl(Uri, Context) method when the app receives deep link content. The Adtrace SDK will then look for new attribution data within the deep link. If the SDK finds new information, it will forward it to the Adtrace backend for reattribution.
Using the onCreate method:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Intent intent = getIntent();
Uri data = intent.getData();
AdTrace.appWillOpenUrl(data, getApplicationContext());
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
Uri data = intent.getData();
AdTrace.appWillOpenUrl(data, getApplicationContext());
}
AdTrace.appWillOpenUrl(Uri) method is marked as deprecated as of Android SDK v2+. Please use AdTrace.appWillOpenUrl(Uri, Context) method instead.
This call can also be made from the web view with the function AdTrace.appWillOpenUrl in Javascript like so:
AdTrace.appWillOpenUrl(deeplinkUrl);