Skip to main content


Optimizely Knowledge Base

Implement the Optimizely snippet with Signal

This article will help you:
  • Implement the Optimizely snippet if you're using Signal
  • Use Signal’s preconfigured tag templates to integrate Optimizely

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.

This is a non-standard deployment, so contact your Signal representative. Discuss your use case, the vendor you want to deliver synchronous content through, and the Optimizely snippet.

If you must load Optimizely through Signal, read on to learn important best practices and pitfalls for implementing Optimizely with a tag manager and please reach out to your Customer Success Manager to discuss the implications.

To ensure clean content delivery with Optimizely, load the Optimizely snippet synchronously.

Here's an example of synchronous code:

<script src=”//” type=”text/javascript”> { ‘site’ : ‘xxxxxxx’, ‘mode’ : ‘sync’ } </script>

If you shift from asynchronous to synchronous, other integrations running from the bootstrap could be in conflict. Signal may be able to specify which code runs synchronously and which code runs asynchronously in a single tag.

Running analytics tags synchronously post-content can cause load time discrepancies.

Integrate Optimizely with Signal

Signal supports Optimizely implementations for A/B testing, adding and removing audiences, and assigning dimensions. Use the pre-configured tag templates in the Signal dashboard to integrate these implementations.

  1. In the Tags tab, select Add a Tag. 

  2. Search for "Optimizely" in the template list and click the appropriate template. 

  3. Enter your Optimizely project ID, audience IDs, and dimension IDs in the Signal template.

Contact your Signal representative for help with implementation.

Server-direct integrations

Signal supports server-direct integration, which eliminates the need to deliver data through the browser. Vendor and client implementations vary, so contact your Signal representative to discuss your specific use case.