For what staging is and what it’s for, see the concept overview.
Add Staging
Start by opening your website settings. You can get there two ways:
- Via the gear icon at the bottom of the sidebar.
- Via “Add website” in the website picker dropdown at the top.
Update the tracking script
After clicking “Add Staging”, a popup opens with your updated tracking script. In addition to the existing Replace your existing tracking code on the website with this updated script — typically in the
data-website-id attribute, it now includes a new data-staging-website-id attribute:<head> section.Automatic routing
Once the updated script is live, routing happens automatically — no further manual configuration is needed.Traffic that does not come through the production domain set in
data-domain (e.g. dev.example.com, staging.example.com, or localhost) is automatically routed to the staging environment instead of flowing into your production statistics.Only requests through the exact
data-domain count as production. Any other domain or subdomain running the script lands in staging.Open the staging view
To view the recorded staging data:
- Select the relevant website in the website picker dropdown at the top left.
- In the same dropdown, click “Switch to Staging”.
Recognizing staging visually
While in the staging view, a yellow banner reading “STAGING ENVIRONMENT” appears at the top of the header.This makes it unmistakably clear at all times that you’re not looking at live production data.

