Skip to main content

Everything you need to learn Optimizely X in one place: See our resource pages for Web Experimentation and Personalization.

Optimizely Knowledge Base

Set up projects for development and production environments

relevant products:
  • Optimizely X Web Experimentation
  • Optimizely X Web Personalization
  • Optimizely X Web Recommendations
  • Optimizely Classic

  • Use separate projects to create development and production environments

Many organizations have separate development and production environments so they can build and test new features without disturbing production traffic. In Optimizely, you can create separate projects for each environment to help with governance.

With separate development and production projects, your organization can safely build and QA experiments and Personalization campaigns in a development environment before deploying to production. This approach allows multiple stakeholders in your organization to act as gatekeepers for running new experiments in production.

This article describes how to set up projects for two separate environments and deploy experiments in that setup.

Set up projects

First, you'll start by creating two new projects: one for development and one for production. Each project will need its own snippet:

  1. Create a project for your development environment.

  2.  Implement the snippet in the head tag for that environment.

  3. Add the collaborators who you'd like to have access to your development project.

  4. Next, create a project for your production environment.

  5. Implement the production project snippet in the head tag of the production environment.

  6. Add collaborators who you'd like to have access to your production project.

Now you're ready to build and run experiments and Personalization campaigns.

Create and deploy experiments

Once you've set up your development and production projects, use them to create, test, and deploy experiments. Here's how:

  1. Create an experiment in your development environment. If your development URLs are the same as the URLs used for your production environment, make sure that your production environment does not use the snippet from your development project.

  2. Run and QA your new development experiment to make sure that everything works the way you'd like.

  3. Change the targeting of your new experiment to make sure that it runs properly on your production environment URLs.

  4. Duplicate your experiment to your production project. Only people who have access to both the development and production projects can complete this step.

Now, when you're ready, you can start the experiment in your production project!