After you have successfully instrumented Adjust as a destination in RudderStack, follow this guide to correctly send your events to Adjust in device mode.
See the following GitHub repositories for more information on the implementation:
After adding the dependency, register the RudderAdjustFactory with your RudderClient initialization as a factory of RudderConfig. Run the following command to import RudderAdjustFactory.h file in your AppDelegate.m file:
#import <Rudder-Adjust/RudderAdjustFactory.h>
Then, change the SDK initialization to the following:
Follow the steps in this section to add Adjust to your Kotlin project.
In your module (app-level) Gradle file (usually <project>/<app-module>/build.gradle.kts or <project>/<app-module>/build.gradle), add the following dependencies for the RudderStack-Adjust integration:
For further steps like adding the Google Play Services dependency, required AndroidManifest permissions, and ProGuard rules, refer to the Adjust documentation.
Add the SDK initialization and the Rudder-Adjust integration in your Application class:
To add Adjust to your Android project, follow these steps:
Add mavenCentral() to the repositories section of your build.gradle file:
repositories{mavenCentral()}
Next, add the following permissions to your AndroidManifest.xml file:
<uses-permissionandroid:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>// If you are not targeting the Google Play Store, you need to add the following permission:
<uses-permissionandroid:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
// If you are targeting Android 13 and above (API level 33), you need to add the com.google.android.gms.AD_ID permission to read the device's advertising ID.
<uses-permission android:name="com.google.android.gms.permission.AD_ID"></uses-permission>
Finally, add the following lines in your build.gradle file under dependencies:
// RudderStack Android-SDK
implementation'com.rudderstack.android.sdk:core:[1.0,2.0)'// RudderStack Adjust-SDK
implementation'com.rudderstack.android.integration:adjust:1.0.1'// Add Google Play Services library to enable the Google Advertising ID for Adjust SDK
implementation'com.google.android.gms:play-services-ads-identifier:17.0.1'// To support the Google Play Referrer API, make sure you have the following in your build.gradle file:
implementation'com.android.installreferrer:installreferrer:2.2'
For more information on implementing com.google.android.gms:play-services-ads-identifier:17.0.1, refer to the Adjust documentation.
After adding the dependency, register the RudderAdjustFactory with your RudderClient initialization as a factory of RudderConfig. Add the following line in your Application class:
The package comes with Adjust Unity SDK embedded in it along with the required jar files for Android Install Referrer. It is strongly recommended to not add the Adjust SDK separately.
After importing the rudder-unity-extension-adjust.unitypackage to your project, attach the RudderPrefabs.prefab file from RudderUnityPlugin to your main GameObject.
Finally, change the SDK initialization:
// Build your configRudderConfigBuilderconfigBuilder=newRudderConfigBuilder().WithEndPointUrl(DATA_PLANE_URL).WithFactory(RudderAdjustIntegrationFactory.GetFactory());// Get instance for RudderClientRudderClientrudderClient=RudderClient.GetInstance(WRITE_KEY,configBuilder.Build());
Follow the below steps to add Adjust to your Flutter Project:
Add the following dependency to the dependencies section of your pubspec.yaml file.
rudder_integration_adjust_flutter:^1.0.1
Run the below command to install the dependency added in the above step:
flutterpubget
Import the RudderIntegrationAdjustFlutter in your application where you are initializing the SDK.
RudderStack’s identify call lets you identify a visiting user and associate them to their actions.
RudderStack sends the user information in the identify call to Adjust’s addSessionPartnerParameter method to set the userId (or anonymousId, in case userId is absent), so that the user information is passed to the subsequent calls.
The track call lets you record the user actions along with any properties associated with them.
When you make a track call, RudderStack maps the event name with the corresponding Adjust custom event in the dashboard using Adjust’s trackEvent method.
Make sure to define the event mapping in the Map events to Adjust Event Tokens dashboard setting. Adjust will reject any events apart from these mappings.
You can also send custom properties in your track calls as partner parameters to Adjust. Adjust then sends those parameters to the external partners you have set up in your Adjust dashboard. See the FAQ for more information on adding a partner in Adjust.
RudderStack uses the property mappings specified in the RudderStack Parameters to Partner Parameters dashboard setting to check if a key is present in the track event properties and maps it to the corresponding Adjust partner parameter object.
Adjust will reject any properties apart from mappings specified in the RudderStack Parameters to Partner Parameters dashboard setting.
The partner parameters only accept the String data type.
Suppose you set the following mappings in the RudderStack dashboard:
RudderStack property
Adjust partner parameter
revenue
price
quantity
quantity
A sample track call with the above properties is shown below:
RudderStack’s Adjust mobile integration (iOS and Android) automatically triggers an Install Attributed event if you have enabled Install Attribution tracking in the dashboard settings.
The enhanced attribution support is available from:
Rudder-Adjust Android v2.1.0 and above
Rudder-Adjust iOS v2.2.0 and above
Usage
Follow these steps to use the enhanced attribution tracking feature:
1. Configure token mapping in the Adjust dashboard
In your Adjust dashboard, create a new event token specifically for the Install Attributed event — you can also use an existing event token in case you have one.
Copy the generated event token.
Use this token in the Adjust destination configuration (explained below).
2. Adjust destination configuration in RudderStack
In your RudderStack dashboard, add Adjust as a mobile device mode destination.
In the Map events to Adjust event tokensdashboard setting, map the Install Attributed event to the event token obtained above.
Save the mapping.
3. Enable automatic attribution tracking
Toggle on the Enable Install Attributiondashboard setting to automatically track the Install Attributed event when the app is installed for the first time.
How attribution tracking works
By leveraging Adjust’s attribution callback on iOS and Android, the integration listens for an attribution change from Adjust’s SDK and triggers the event with the following Adjust attribution parameters:
Key
Value
Description
provider
Adjust
Hardcoded value
trackerToken
attribution.trackerToken
Token of the link to which the device is currently attributed
trackerName
attribution.trackerName
Name of the link to which the device is currently attributed
campaign.source
attribution.network
Name of the network to which the device is currently attributed
campaign.name
attribution.campaign
Name of the campaign to which the device is currently attributed
If any of the above values are unavailable, they are defaulted to null. This event is then sent to all the connected device mode and cloud destinations.
RudderStack’s device mode integration automatically handles device information through the native Adjust SDK. The following table shows how RudderStack events map to Adjust’s native methods:
RudderStack event/method
Adjust SDK method
Description
identify()
addSessionPartnerParameter()
Sets user ID for session attribution
track() Required
trackEvent()
Sends custom events to Adjust
reset()
resetSessionCallbackParameters()
Resets user session data
properties.revenue
Revenue tracking
Revenue amount for purchase events
properties.currency
Revenue tracking
Currency code for revenue
properties.*
Callback parameters
All properties as callback parameters
properties.* (mapped)
Partner parameters
Mapped properties as partner parameters
Device mode automatically handles device identification through the native Adjust SDK, so you don’t need to manually provide context.device information like in cloud mode.
Troubleshooting
Issue
Resolution
Events not appearing in Adjust dashboard
Verify that your event is mapped to an Adjust event token in the dashboard settings.
Check that the event token exists in your Adjust dashboard.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.