Use Optimizely as a data source

Resources

Data Source Type: REST/URL
Authentication: API Key Authentication
Sample Query https://www.optimizelyapis.com/experiment/v1/projects/
API Documentation Optimizely API Documentation
API token Visit optimizely.com/tokens to generate an API token.
Klip Gallery Save time and add pre-built Klips with the Klip Gallery
Klip Gallery: Optimizely.

Step-by-Step

Creating a data source using Optimizely

To create a data source using Optimizely data, you need to accomplish three tasks:

  • Start the data source creation process.
  • Write a query and enter it in Klipfolio. 
  • Add query parameters to the URL.

Step 1. Start the data source creation process

To create a data source using Optimizely, go to the Connector Gallery page in Klipfolio and select Optimizely.

Step 2: Write the query and enter it in Klipfolio 

Refer to the Optimizely API Docs to learn more about writing a query. To help get you started, here are a few examples:

Basic Query
https://www.optimizelyapis.com/experiment/v1/projects/

Get experiment results
https://www.optimizelyapis.com/experiment/v1/experiments/<YOUR-EXPERIMENT-ID>/results

List goals in project
https://www.optimizelyapis.com/experiment/v1/projects/<YOUR-EXPERIMENT-ID>/goals/

When you have written a query, enter it into Klipfolio.

Step 3: Add query parameters

Each type of API call will have required parameters associated with it. Klipfolio lets you add query parameters to the URL using the Query Parameters builder. This builder will automatically add the parameters to the URL using the correct syntax.
At the minimum, you will need to add your API Token to the query. These procedures will detail how to do that; however, you can apply these steps to other, optional, parameters.

  1. Click the Query Parameters link.
  2. In the Name field, type token.
  3. In the Value field, type your API Key.
  4. From the Type menu, select Header.

Learn More

To learn more about JSON data and API Key authentication, check out these articles: