The Environments Feature
Manage Multiple Testing Environments with Convert’s Flexible Tracking Setup
THIS ARTICLE WILL HELP YOU:
- Understand the Environment feature
- Learn its key features and benefits
- Use the Feature: Step-by-step guide
Introduction
The "Environments" feature in the Convert app provides enhanced flexibility for managing, tracking, and testing experiments across different deployment stages. This feature allows users to create multiple environments, such as Production, Staging, and Testing, streamlining the A/B testing workflow.
Key Features and Benefits
- Environment Management:
- Multi-Environment Support: The "Environments" feature allows users to configure multiple environments in each project. How many environments you can add to each project depends on your plan. Options include, but are not limited to, Production, Staging, Development, and QA, enabling a full testing cycle from development to production. Note that you may choose any name for your environment.
- Tracking Script per Environment:
- Each environment has a unique tracking script, identified by an environment parameter in the script URL. This ensures that the backend only returns experiences associated with the selected environment.
-
If the tracking script is installed without an environment parameter, every active experience can run regardless of the environment it is assigned to. To restrict experiences to a specific environment, use the environment-specific tracking script that includes the appropriate environment parameter.
- Legacy Compatibility: Existing users with legacy tracking scripts will default to a single production environment, ensuring continuity without requiring immediate migration.
- Plan-Based Limits:
- The environment limit applies to each project, not to your whole account: environments you create in one project don't count toward another project's limit. You can name environments according to your testing needs, for example Local, Development, Integration, Testing, Staging, and Production.
- UI/UX Enhancements:
- Unified View: The “Tracking Code” and “Environments” sections have been merged into one consolidated "Environments & Tracking Code" page.
- Visual Cues: Greyed-out options and lock icons guide users on features available only in the new tracking script while allowing legacy users to see what additional functionality the upgrade would provide.
Step-by-Step Guide to Using the "Environments" Feature
Step 1: Access the Environments & Tracking Code Page
- Navigate to Project Settings:
- Open your project in Convert Experiences and go to Project Configuration.
- Click on Environments & Tracking Code to access the environment management section.
- View Available Environments
- You’ll see the default environments, which will depend on your current plan. New plans typically start with a "Production" environment, with options to add additional environments up to your plan’s limit.
Step 2: Adding a New Environment
- Click on Add Environment:
- Select the Add Environment button within the environments section.

- Select the Add Environment button within the environments section.
- Name Your Environment:
- Assign a name to your environment, such as "Staging" or "QA." Note that only one environment can be designated as "Production" to prevent confusion.
- Assign a name to your environment, such as "Staging" or "QA." Note that only one environment can be designated as "Production" to prevent confusion.
- Generate Tracking Script:
- Upon creating an environment, a unique tracking script with an environment parameter will be generated. Copy this script and add it to your site’s pages as needed to track actions within that specific environment.

- Upon creating an environment, a unique tracking script with an environment parameter will be generated. Copy this script and add it to your site’s pages as needed to track actions within that specific environment.
- Plan-Specific Limits:
- When a project reaches your plan's environment limit, you can't add another environment to it. The app shows: "You cannot add more environments, because you have used your environment limit for this plan."
Step 3: Environments and the legacy tracking script
- Projects still on the legacy script:
- A Web project that still runs the legacy tracking script shows a Use Legacy Script switch, turned on. While it is on, you can't add environments, and only the production environment can be used. The app shows: "A new environment cannot be added or used when the legacy script is in use. To use the environments, switch the Legacy Script off."
- Projects on the new tracking script don't show this switch.
- A Web project that still runs the legacy tracking script shows a Use Legacy Script switch, turned on. While it is on, you can't add environments, and only the production environment can be used. The app shows: "A new environment cannot be added or used when the legacy script is in use. To use the environments, switch the Legacy Script off."
- Moving to the new tracking script:
- Turn Use Legacy Script off. The Disable Legacy Script Permanently dialog says the change is permanent and can't be reverted. Select Disable Legacy Script to confirm.
- After that, the switch no longer shows for the project, and you can add and use environments. Before you switch, follow Migrate from the Legacy Tracking Script to the New Tracking Script, because the new script needs its own snippet on your site.
- Understanding Script Differences:
- The new tracking script supports environment-specific tracking. The legacy script supports only a single production environment.
Step 4: Editing and Deleting Environments
- Editing an Environment:
- Select the Edit option next to the environment name to change settings or rename the environment.
- Production environments cannot be deleted if they are the only production environment in the list. This restriction ensures continuity and prevents accidental deletion of a primary environment.
- Deleting Environments:
- To delete, click the delete icon. If it’s the only production environment, deletion will be restricted.
- A confirmation message will prompt you to confirm deletion. For legacy script users, deletion of additional environments will not be possible, as only one environment is supported.

Step 5: Setting Up Tracking Code for Each Environment
- Copy Environment-Specific Tracking Code:
- Once an environment is created, the system will generate a unique tracking script containing an environment parameter.
- Copy the generated code and insert it on the pages of your site corresponding to that environment. Each environment’s tracking script ensures that only the relevant experiments for that environment are loaded.
- Legacy Script Users:
- Users on the legacy tracking script will see a message clarifying that environment-specific tracking is unavailable. They can still access a generic tracking code but won’t be able to utilize multiple environments until switching to the new tracking script.
Step 6: Default Environment and Migration for Existing Projects
- Migrating Existing Projects:
- Existing projects will automatically receive a default “Production” environment. This transition will not affect tracking or data and provides users with a simple setup to start using environments.
- Ensuring Compatibility:
- For projects with the legacy script, environments will not be displayed, and only the standard production tracking code will be accessible, ensuring a smooth transition without configuration changes.