The Customer Data Platform for Developers
Website · Documentation · Community Slack
The Adjust integration allows you to send your event data from RudderStack to Adjust for mobile measurement and attribution.
This SDK fully supports both Swift and Objective-C and can be used seamlessly in either type of project.
Add the Adjust integration to your Swift project using Swift Package Manager:
- In Xcode, go to
File > Add Package Dependencies
-
Enter the package repository URL:
https://github.com/rudderlabs/integration-swift-adjustin the search bar -
Select the version you want to use
-
Select the target to which you want to add the package
-
Finally, click on Add Package
Alternatively, add it to your Package.swift file:
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "YourApp",
products: [
.library(
name: "YourApp",
targets: ["YourApp"]),
],
dependencies: [
// Add the Adjust integration
.package(url: "https://github.com/rudderlabs/integration-swift-adjust.git", .upToNextMajor(from: "<latest_version>"))
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "RudderIntegrationAdjust", package: "integration-swift-adjust")
]),
]
)This integration supports Adjust iOS SDK version:
5.4.6+
The integration supports the following platforms:
- iOS 15.0+
- tvOS 15.0+
Initialize the RudderStack SDK and add the Adjust integration:
import RudderStackAnalytics
import RudderIntegrationAdjust
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Initialize the RudderStack Analytics SDK
let config = Configuration(
writeKey: "<WRITE_KEY>",
dataPlaneUrl: "<DATA_PLANE_URL>"
)
let analytics = Analytics(configuration: config)
// Add Adjust integration
analytics.add(plugin: AdjustIntegration())
return true
}
}Replace:
<WRITE_KEY>: Your project's write key from the RudderStack dashboard<DATA_PLANE_URL>: The URL of your RudderStack data plane
For more information:
- Email us at [email protected]
- Join our Community Slack