What is RudderStack?
RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.
More information on RudderStack can be found here.
Integrating Optimizely with RudderStack's iOS SDK
-
Add Optimizely as a destination in the Dashboard.
-
Rudder-Optimizely is available through CocoaPods. To install it, add the following line to your Podfile and followed by
pod install
:
pod 'Rudder-Optimizely'
RSClient
Initialize Put this code in your AppDelegate.m
file under the method didFinishLaunchingWithOptions
// Setup optimizely logger.
OPTLYLoggerDefault *optlyLogger = [[OPTLYLoggerDefault alloc] initWithLogLevel:OptimizelyLogLevelAll];
// Create an Optimizely manager
self.optlyManager = [[OPTLYManager alloc] initWithBuilder:[OPTLYManagerBuilder builderWithBlock:^(OPTLYManagerBuilder * _Nullable builder) {
builder.sdkKey = SDK_KEY;
builder.logger = optlyLogger;
}]];
RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:DATA_PLANE_URL];
[builder withFactory:[RudderOptimizelyFactory instanceWithOptimizely:self.optlyManager]];
[RSClient getInstance:WRITE_KEY config:[builder build]];
Send Events
Follow the steps from our RudderStack iOS SDK.
Contact Us
If you come across any issues while configuring or using this integration, please feel free to start a conversation on our Slack channel. We will be happy to help you.