-
Notifications
You must be signed in to change notification settings - Fork 44
deeplinking reattribution en
Adjust enables you to run re-engagement campaigns by using deep links. For more information on this, please check our official docs.
If you are using this feature, in order for your user to be properly reattributed, you need to make one additional call to the adjust SDK in your app.
Once you have received deep link content information in your app, add a call to appWillOpenUrl
method of the Adjust
instance. By making this call, the adjust SDK will try to find if there is any new attribution info inside of the deep link
and if any, it will be sent to the adjust backend. If your user should be reattributed due to a click on the adjust tracker
URL with deep link content in it, you will see the attribution callback in your app being triggered
with new attribution info for this user.
In the code samples described above, call to the appWillOpenUrl
method should be done like this:
function handleOpenURL(url) {
setTimeout(function () {
// Check content of the url object and get information about the URL.
Adjust.appWillOpenUrl(url);
}, 300);
};
// ...
var app = {
initialize: function() {
this.bindEvents();
},
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
},
onDeviceReady: function() {
if (device.platform == "iOS") {
universalLinks.subscribe('adjustDeepLinking', app.didLaunchAppFromLink);
}
},
didLaunchAppFromLink: function(eventData) {
// Check content of the eventData.url object and get information about the URL.
Adjust.appWillOpenUrl(eventData.url);
}
}
// ...
Basic Integration
Additional Features