- Optimizely X Web Experimentation
- Optimizely X Web Personalization
- Optimizely X Web Recommendations
- Optimizely Classic
THIS ARTICLE WILL HELP YOU:
- 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:
Create a project for your development environment.
Implement the snippet in the head tag for that environment.
Add the collaborators who you'd like to have access to your development project.
Next, create a project for your production environment.
Implement the production project snippet in the head tag of the production environment.
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:
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.
Run and QA your new development experiment to make sure that everything works the way you'd like.
Change the targeting of your new experiment to make sure that it runs properly on your production environment URLs.
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!