# Include script tag only, when building for production

**URL:** https://discourse.roots.io/t/include-script-tag-only-when-building-for-production/18669
**Category:** sage
**Created:** 2020-07-15T14:48:21Z
**Posts:** 2

## Post 1 by @goellner — 2020-07-15T14:48:21Z

Is there a variable to check if the build is a production build?

I want to disable Google Tag Manager and Google Analytics in dev

---

## Post 2 by @alwaysblank — 2020-07-15T14:54:44Z

Sage itself has no way to know if it’s in a development or production environment unless you tell it. Usually you would do that using environment variables. Bedrock has some mechanics to set this up using a `.env` file, so you could look at that implementation of you want to roll your own.

---

## Post 3 by @system — 2020-08-26T14:51:50Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
