HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Implement the snippet with Signal

📘

This topic describes how to:

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

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

📘

Note

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, see implementing Optimizely with a tag manager and contact your Customer Success Manager to discuss the implications.

To ensure clean content delivery with Optimizely, load the Optimizely 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 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.