Selecting an environment
The environment is chosen by the API key you initialize the SDK with:Why use the test environment
- Verify your SDK setup, masking rules, and
identify()calls without polluting production analytics. - Let developers and staging traffic record freely; none of it will ever appear in live states, journeys, or agent analysis.
Notes
- Keys are validated server-side together with the page origin, so a leaked key does not let arbitrary sites record into your project. Keep your allowed domains list accurate for both environments.
- Both environments run the same pipeline, so what you see in test (states forming, sessions appearing) behaves the same way live.