Managing Environments
Each source in Told represents an environment. We recommend creating separate sources for each environment to keep test and production data separate.
Recommended setup
| Source | Purpose | SDK initialization |
|---|---|---|
| Local dev | Test surveys during development | told('init', 'DEV_SOURCE_ID') |
| Staging | Pre-production testing | told('init', 'STAGING_SOURCE_ID') |
| Production | Live users | told('init', 'PROD_SOURCE_ID') |
The only difference between environments is the Source ID passed to the init function.
Tags
Use tags to label and organize your sources (e.g., "production", "staging", "testing"). Tags help you quickly identify sources in the dashboard.
Copying surveys between environments
To replicate a survey from your dev environment to production:
- Open the survey in your dev source
- Click Duplicate
- Select the target source (e.g., production)
- The survey is copied with all questions, customization, and triggers
- Activate the survey in the target source
warning
Remember to activate the duplicated survey — duplicates are created in inactive state.