Skip to main content

Implement the Optimizely Web Experimentation snippet with Signal

  • Updated

This topic describes how to:

  • Implement the Optimizely Web Experimentation snippet if you use Signal.
  • Use Signal’s preconfigured tag templates to integrate Optimizely Web Experimentation.

When you set up Optimizely Web Experimentation for the first time, implement the Optimizely Web Experimentation 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 Web Experimentation 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 Web Experimentation snippet.

If you must load Optimizely Web Experimentation through Signal, see implementing Optimizely Web Experimentation with a tag manager and contact your Customer Success Manager to discuss the implications.

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

Example of synchronous code:

<script src=”//s.btstatic.com/tag.js” 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 Web Experimentation with Signal

Signal supports Optimizely Web Experimentation 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 Web Experimentation 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.