Environments
Events are tagged with the build environment so you can keep test traffic out of your real numbers. Filter by it on the dashboard.
The buckets
- Release — your live App Store build.
- Sandbox — everything else: local development builds, TestFlight, and App Review. All of it is non-production traffic, and the point of the split is keeping it out of your real figures rather than telling the three apart.
How it’s set
The SDK derives the environment automatically: a debug build is always sandbox, and otherwise the App Store receipt type decides — a sandbox receipt means TestFlight or App Review, anything else is your live build. Verified revenue uses the same two buckets, because Apple reports only sandbox or production and cannot see how a build was compiled. You can override it explicitly:
Astronaut.shared.configure(
AstronautConfiguration(
trackingId: "naut_xxxxxxxx",
releaseEnvironment: "staging" // optional override
)
)