https://github.com/rudderlabs/rudder-integration-optimizely-ios
RudderStack's Native SDK integration support for Optimizely.
https://github.com/rudderlabs/rudder-integration-optimizely-ios
ios optimizely rudderstack
Last synced: about 2 months ago
JSON representation
RudderStack's Native SDK integration support for Optimizely.
- Host: GitHub
- URL: https://github.com/rudderlabs/rudder-integration-optimizely-ios
- Owner: rudderlabs
- License: other
- Created: 2020-07-21T14:03:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T05:16:06.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T18:50:00.463Z (10 months ago)
- Topics: ios, optimizely, rudderstack
- Language: Objective-C
- Homepage: https://www.rudderstack.com
- Size: 67.4 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# What is RudderStack?
[RudderStack](https://rudderstack.com/) 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](https://github.com/rudderlabs/rudder-server).
## Integrating Optimizely with RudderStack's iOS SDK
1. Add [Optimizely](https://optimizely.com) as a destination in the [Dashboard](https://app.rudderstack.com/).
2. Rudder-Optimizely is available through [CocoaPods](https://cocoapods.org). To install it, add the following line to your Podfile and followed by `pod install`:
```ruby
pod 'Rudder-Optimizely'
```
## Initialize `RSClient`
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](https://github.com/rudderlabs/rudder-sdk-ios).
## Contact Us
If you come across any issues while configuring or using this integration, please feel free to start a conversation on our [Slack](https://resources.rudderstack.com/join-rudderstack-slack) channel. We will be happy to help you.