Skip to main content

Managing Environments: Best Practices

Each source represents an environment (e.g., local, dev, production). You can assign tags to each source to distinguish them easily. It's recommended to create a separate source for each website or application where you want Told surveys to appear.

For testing purposes, integrate the SDK into your local development code. Create a survey with appropriate triggers. Once everything is working correctly, replicate the setup for your production application by adding the SDK to your production code. The only change required is to update the source ID passed to the init function.

To replicate the same survey from your local environment to production, duplicate it and transfer it to the production source. Remember to activate the survey afterward.