When a user interacts with an Adjust link, their attribution information updates. This can happen if the user interacts with a deep link. Information about a user’s attribution is represented in an Attribution object.
The Attribution object contains the following information:
Values | Data type | Description |
---|---|---|
adid | string | The device’s unique Adjust identifier. |
tracker_token | string | The link token associated with the attribution. |
tracker_name | string | The name of the campaign link. |
network | string | The network associate with the campaign. |
campaign | string | The name of the campaign associated with the attribution. |
adgroup | string | The adgroup associated with the attribution. |
creative | string | The creative associated with the attribution. |
click_label | string | The click label associated with the attribution. |
state | string | The current state of the attribution. Either installed or reattributed |
Trigger a callback when attribution changes
The SDK can listen for attribution changes and call a function when it detects an update. You can set an attribution callback method by specifying an attributionCallback
function in the initSdk
method. Within your function, you have access to the user’s attribution information.
Get current attribution information
When a user installs your app, Adjust attributes the install to a campaign. The Adjust SDK gives you access to campaign attribution details for your install. To return this information, call the getAttribution
method.
Set a referrer
You can set a referrer to trigger an SDK click with a custom click ID when the SDK starts. The SDK sends your custom click ID to Adjust’s servers for attribution purposes.
To set your referrer, call the setReferrer
method and pass your referrer as a URL-encoded string
argument.