Back

Integrate Optimizely with AudienceStream to use audiences to build targeted experiments in Optimizely. The integration steps differ for Optimizely Classic and Optimizely X.  Choose the method that corresponds to your version of Optimizely.

For more information on Optimizely, refer to the Optimizely site.

In this article:

Table of Contents Placeholder

Requirements

Set Data Enrichment for the Tealium Collect tag to Frequent.  For more information, see the Tealium Collect Setup Guide.

After you complete the integration, audiences are automatically sent to Optimizely via data layer enrichment.

Integrating Optimizely Classic with AudienceStream

There are two steps to integrate Optimizely Classic with AudienceStream:

  1. Add utag.sync.js to your site.
  2. Connect AudienceStream and Optimizely by using the Tealium Tool: Optimizely Helper.

Adding utag.sync.js to Your Site

You need to include utag.sync.js in all html pages that need to use Optimizely. For consistency, you may want to include it in all pages. For details on setting up utag.sync.js, see Using the utag.sync.js Script.

Connecting AudienceStream and Optimizely 

To use audiences in Optimizely, you need to connect AudienceStream and Optimizely and then map audiences to your Optimizely project. Use the Tealium Tool: Optimizely Helper to complete both of these tasks. For more information, see Tealium Tool: Optimizely Helper.

Integrating Optimizely X with AudienceStream

Use the Optimizely Dashboard to integrate Optimizely X with AudienceStream.

  1. After creating your Audiences in AudienceStream, log into Optimizely and click Integrations.
  2. Set Tealium to On.
  3. Enter your Tealium account ID.
  4. Select the Overview tab, then click Audiences.
  5. Under Conditions, click Tealium.
  6. Drag Tealium Audience or Tealium Badge to create an Optimizely Audience condition based on a Tealium audience.
    CreateAudience1.png
    CreateAudience2.png
  7. Click Save Audience.

Creating Audience-Based Experiments

After Optimizely is integrated with AudienceStream, the mapped audiences are available for your project and you can create audience-based experiments.

To select a new target audience for an experiment:

  1. Create a new experiment, or edit an existing experiment, and click Audiences.
  2. Click Add a Saved Audience and select the audience to target.
  3. Save your experiment.