开发者用的客户数据平台
将 RudderStack iOS SDK 与 AppsFlyer 集成
此存储库包含集成 RudderStack iOS SDK 与 AppsFlyer 所需的资源和对夹。
有关在 RudderStack 中配置 AppsFlyer 为目的地以及支持的事件及其映射的更多信息,请参阅 AppsFlyer 文档。
重要:此设备模式集成支持 AppsFlyer v6.5.4 及以上版本。 |
---|
第 1 步:与 AppsFlyer 集成 SDK
- 在 RudderStack 控制台 中将 AppsFlyer 添加为目标。
- 通过 CocoaPods 提供
RudderAppsFlyer
。要安装它,将以下行添加到您的Podfile
pod 'RudderAppsFlyer', '~> 1.1.1'
- 运行
pod install
命令。
第 2 步:导入 SDK
Swift
import RudderAppsFlyer
Objective C
@import RudderAppsFlyer;
第 3 步:初始化 RudderStack 客户端(RSClient)
以下是需要在您的 AppDelegate
中的 didFinishLaunchingWithOptions
方法下放置的内容。
Swift
let config: RSConfig = RSConfig(writeKey: WRITE_KEY)
.dataPlaneURL(DATA_PLANE_URL)
RSClient.sharedInstance().configure(with: config)
RSClient.sharedInstance().addDestination()
Objective C
RSConfig *config = [[RSConfig alloc] initWithWriteKey:WRITE_KEY];
[config dataPlaneURL:DATA_PLANE_URL];
[[RSClient sharedInstance] configureWith:config];
[[RSClient sharedInstance] addDestination:[[RudderAppsFlyerDestination alloc] init]];
步骤 4:发送事件
按照RudderStack iOS SDK仓库中列出的步骤进行,以开始向AppsFlyer发送事件。
关于RudderStack
RudderStack是为开发者提供的客户数据平台。使用RudderStack,您可以从每个应用程序、网站和SaaS平台上收集客户数据,然后在数据仓库、业务和营销工具中激活您的数据。
开始构建更好的、以仓库为主的CDP,为您的客户数据栈的每个部分提供完整、统一的数据。今天注册RudderStack云服务。 |
---|
联系我们
如有配置或使用此集成的问题,请在我们的Slack社区开始对话。