When you set up Optimizely for the first time, you'll need to implement the Optimizely snippet: a single line of code that lets you start running A/B tests. You can use a tag management system to implement the Optimizely snippet.
This article walks you guides you through using Ensighten's tag management system to implement the snippet.
Here’s how to deploy Optimizely's snippet synchronously with Ensighten:
In Ensighten Manage, create a new deployment.
In the Project Script URL field, add your Optimizely snippet, starting with the two slashes (for example, //cdn.optimizely.com/js/12345678.js). Click Next.
Set the Condition to Global and the Execution to Immediate. Click Next.
Set the order of priority so that Optimizely fires before other tags, including your analytics tags and any other asynchronous tags. Click Save.