Content Delivery Networks
How to use content delivery networks (CDN) with Optimizely Web Experimentation and Optimizely Personalization
Optimizely Web Experimentation and Optimizely Personalization use a content delivery network (CDN), a network of web servers located worldwide, to provide service for rendering the snippet.
See the following articles for information:
- Transport Layer Security
- Page load speed
- Synchronous and asynchronous snippet loading
- Cookie creation
Self-host the Optimizely snippet
Place the JavaScript snippet in the head
tag of your website to get Optimizely Web Experimentation or Optimizely Personalization working. This synchronously loads the Optimizely software and your tests. See Get started with Optimizely Web Experimentation or Get started with Optimizely Personalization.
Benefits of self-hosting
Self-hosting is ideal for customers who are using both HTTP/2 to serve their website and a CDN. By self-hosting, you can eliminate an SSL connection to Optimizely Web Experimentation while using multiplexing to request the snippet faster.
While self-hosting with an HTTP/1 connection may eliminate an additional DNS lookup and the SSL handshake, there is no guarantee the script will download earlier than if it was downloaded directly from Optimizely.
If you have your own internal security policies that make loading a third-party JavaScript tag difficult, self-hosting may work better for you.
Self-hosting with CDNs
If you use a CDN to serve your websites, you may be able to use your configuration to deliver the Optimizely snippet to your site.
There are different configurations if you are using a standard or custom snippet, so check your project first before you get started.
Updated about 11 hours ago