- Optimizely Web Experimentation
- Optimizely Personalization
Optimizely Web Experimentation and Optimizely Personalization use a Content Delivery Network (CDN), a network of web servers located around the world, to provide service for rendering the snippet. This page includes articles on CDNs and related topics, like self-hosting the snippet.
Content Delivery Networks
Self-hosting the Optimizely Web Experimentation snippet
The easiest way to get Optimizely Web Experimentation or Optimizely Personalization working out of the box is by placing the JavaScript snippet in the head
tag of your websites, which synchronously loads the Optimizely Web Experimentation or Optimizely Personalization software and the tests you are running. For information on how to set up Optimizely Web Experimentation in this way, refer to Get started with Optimizely Web Experimentation. For information on setting up Optimizely Personalization, see Get started with Optimizely Personalization.
Benefits of self-hosting
Self-hosting the Optimizely Web Experimentation snippet can deliver several potential security and performance benefits. If you are using a CDN and HTTP/2 to serve your website, you will be able to use multiplexing to request the snippet faster.
An additional DNS lookup, a new HTTP connection, and an SSL handshake with the Optimizely Web Experimentation server are normally required during the initial load of the page.
If you have your own internal security policies that make loading a third-party JavaScript tag difficult, a traditional self-hosting approach may work out better for you.
Self-hosting with CDNs
If you are using a CDN to serve your websites, you may be able to use your CDN configuration to also deliver the Optimizely Web Experimentation snippet to your site.
There are slightly different configurations based on if you are using a standard or custom snippet, so check your project first before you get started.
Please sign in to leave a comment.