Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideProduct feedbackGitHubNuGetDev CommunitySubmit a ticketLog In

Use Signal with Optimizely snippet

This topic describes how to implement the Optimizely snippet if you use Signal and 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 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 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 Web Experimentation 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 Web Experimentation, 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 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.
  1. Search for "Optimizely" in the template list and click the appropriate template.
  1. 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.