Optimizely is a digital experience & experimentation platform. By integrating Optimizely with Sprig, you will be able to accomplish the following:Documentation Index
Fetch the complete documentation index at: https://docs.sprig.com/llms.txt
Use this file to discover all available pages before exploring further.
- Target users/segments based on an experiment id and variation name(s)
- Run cross-tab analysis based on an experiment id and variation name(s)
Optimizely Supported Products:
Sprig Supported SDKs:
Sprig Min SDK Versions:
Please reference the table below to determine which version of the Sprig SDK your team will need to adopt in order to integrate Optimizely <> Sprig| Platform | Min SDK Version |
|---|---|
| Web | 2.18.3 / 2.23.1 |
| Native iOS | 4.11.0 |
| Native Android | 2.10.0 |
| React Native | TBD |
How to Implement:
Send all active experiments & variations
Web
Optimizely offers two different product: Web and Full-Stack Experimentation. Based on the product you want to integrate with, you will follow separate steps to get it installed.Optimizely Web
On web, so long as the client SDK matches or is greater than the min (2.18.3), Optimizely will work without any additional dev effort. If your SDK version does not match, you will need to request your developer to update accordingly.Optimizely Full-Stack
This will require you to have a minimum Sprig SDK version of 2.23.1. Once you have installed that version, you will be able to have access to two new methods that will allow you to integrate. Option 1: Passing in Optimizely Client to our SDK This is the easiest option as we will add in a notification listener to your Optimizely client for you. What this notification listener will do is that it will listen to every time you activate an experiment, and pass the experiment and variation to Sprig.iOS or Android
Step 1: Cut & paste the snippet below into your application code baseSwift
Android
Step 3: Share your associated customer userId with Sprig (not required, but recommended) Once you have shared your Optimizely SDK Key and the customer’s userId (not required), Sprig will automatically parse all active experiments & variations that are currently active in your application.
How to Use:
Prior to in-product targeting, please ensure you reach out to support@sprig.com in order to activate the integration for your respective productId Once Optimizely has been configured for your account, you can proceed onwards and create a study OR edit an existing one. Step 1: Enable Optimizely in Sprig’s integration galleryStep 2: Create a new study OR edit an existing one
Step 3: Fill out the question form and move on to the audience form
Step 4: In the audience form, select a trigger for “When to Send”
Step 5: Select your Optimizely Experiment attribute (see below)
Step 6: Copy and paste the corresponding experimentId from Optimizely to Sprig (see below)
Step 7: Copy and paste the corresponding value for the variation and pick a comparison operator (see below)
FAQs
Question: Can I target multiple experiments/variations with a single study?Answer: Yes! You can use the AND/OR targeting to support multiple experiments/variations. You can also change the comparison operator to “contains” to target more than one variation Question: Does this work for React Native?
Answer: At this time, our Optimizely integration does not support React Native. We expect a target of Q1, 2023 to introduce React Native Question: How do I export experiment names & variations from Sprig?
Answer: On your Summary page, navigate to responses and select the CSV download option. You should be able to see each respondent, including all qualifying experiments/variations