Optimizely Edge Delivery extension
Optimizely enables teams to manage and optimize their digital content using experimentation features.
How it works
Section titled “How it works”After you install the Optimizely Edge Delivery extension for your team and enable it on your Netlify site, the extension automatically injects edge functions into your site during the build process. The edge function is named optimizely-edge-delivery_run-experiment
.
The edge function leverages the Optimizely Edge Delivery SDK, which allows you to run experiments at the edge without relying on a client-side script.
Before you begin
Section titled “Before you begin”To integrate Optimizely with your Netlify site, make sure you have the following:
- an Optimizely account
- a deployed site on Netlify
Get started with Optimizely Edge Delivery
Section titled “Get started with Optimizely Edge Delivery”As a Team Owner, you can install the Optimizely Edge Delivery extension for your team to use:
- Navigate to the Optimizely Edge Delivery extension details page.
- On the details page, select Install.
- From your team’s Sites list, select the site you plan to use with Optimizely, and navigate to Project configuration . Build & deploy Optimizely Edge Delivery
- Select Enable and follow the prompts to configure and enable Optimizely.
- Select Save.
- Select Redeploy
The extension automatically creates site environment variables for the configuration values you provide:
NETLIFY_OPTIMIZELY_EDGE_DELIVERY_DEV_URL
NETLIFY_OPTIMIZELY_EDGE_DELIVERY_ENABLED
NETLIFY_OPTIMIZELY_EDGE_DELIVERY_SNIPPET_ID
You can review these variables at any time by navigating to Project configuration . Environment variables
Modify your configuration
Section titled “Modify your configuration”To update the Optimizely Edge Delivery configuration settings for your site:
- In the Netlify UI, navigate to Project configuration for the site you want to edit. Build & deploy Optimizely Edge Delivery
- Update your configuration.
- Select Save.
- Select Redeploy
Alternatively, you can update the environment variables directly and then redeploy.
Disable the extension on your site
Section titled “Disable the extension on your site”To disable the Optimizely Edge Delivery extension for your site:
- In the Netlify UI, navigate to Project configuration for the site you want to disable the Optimizely Edge Delivery extension. Build & deploy Optimizely Edge Delivery
- Select Disable.
- Redeploy your site, navigate to Deploys select Trigger deploy with the clear cache option.
Alternatively, you can remove the environment variables directly and then redeploy.
Uninstall the extension
Section titled “Uninstall the extension”As a Team Owner, to uninstall the Optimizely Edge Delivery extension:
- Navigate to the Optimizely Edge Delivery extension details page.
- On the details page, navigate to the Danger zone section, and then select Uninstall this extension.
Did you find this doc useful?
Your feedback helps us improve our docs.