Skip to main content
Every Observerbee project has two environments: live and test. They are fully partitioned end to end: sessions, states, goals, and insights in one environment never mix with the other.

Selecting an environment

The environment is chosen by the API key you initialize the SDK with:
There is no separate environment flag; the key is the switch. Inject the right key through your build’s environment configuration.

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.