Automated QAQuestion 03 of 4

# How can I integrate other environments into Trackingplan?

tpTrackingplan answers

Besides production, you can run Trackingplan on other environments – like staging or development – to detect problems before a release.

Integrating your staging and testing environments and comparing them to your baseline allows you to see the differences between one release and the next, detecting broken events or schemas before releasing them.

To set it up, you’ll just need to modify this init according to your specifications and your own TP\_ID and add it at the top of the <head> section of your site, or include it as a new Google Tag Manager Script. Learn more here about [how to install Trackingplan on your websites.](/docs/installing-trackingplan/installing-trackingplan-on-your-websites)

As you can see, the installation process is the same as the one you carried out when installing Trackingplan. The only thing that changes here is the environment variable within the init provided above.

-   **Note:** The same applies for iOS and Android, where you will only need to set the environment variable in the init.

To integrate different environments using Segment, just add the query parameter `&environment=<environment_name>` to your webhook endpoint to have the desired behavior. For the production environment, you should use PRODUCTION.

As a result, you can also cover the analytics service integrations in your existing release testing by simply integrating Trackingplan without changing your feature or testing code in any way. That way, any existing automated QA you have implemented, such as functional or non-functional regression testing (*e.g.* with Cypress), will stress your analytics under the watch of our system.

**Stop babysitting tags**

Trackingplan audits your real user data around the clock and flags issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup) [Book a demo](/demo)

Filed under [Automated QA](/categories-faqs/automated-qa) · [all questions](/faqs)

More in Automated QA

[Category page →](/categories-faqs/automated-qa)

1.  [?What is Data Quality Testing?](/faqs/what-is-data-quality-testing)
2.  [?What are the benefits of shifting left and testing early?](/faqs/what-are-the-benefits-of-adding-digital-analytics-testing-to-my-digital-analytics-lifecycle)
3.  [?Do I need to change my current tests to compare them with a baseline?](/faqs/will-i-need-to-change-my-current-tests-to-compare-them-with-their-baselines)

Support

## Do you have any questions?

Your questions are important to us. If there's anything on your mind that hasn't been addressed, reach out to us.

[Let's talk →](mailto:support@trackingplan.com?subject=Trackingplan%20-%20Faqs)

Trackingplan

## See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup) [Book a demo](/demo)
