# Hardcoding Google Tag Manager snippet instead of using the admin setting

**URL:** https://meta.discourse.org/t/hardcoding-google-tag-manager-snippet-instead-of-using-the-admin-setting/143298
**Category:** Development
**Created:** [4 במרץ,‏ 2020,‏ 11:28am UTC](https://meta.discourse.org/t/hardcoding-google-tag-manager-snippet-instead-of-using-the-admin-setting/143298 "2020-03-04T11:28:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![agmontpetit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/agmontpetit/32/160109_2.png) [@agmontpetit](https://meta.discourse.org/u/agmontpetit)
#### Post date: [4 במרץ,‏ 2020,‏ 11:28am UTC](https://meta.discourse.org/t/hardcoding-google-tag-manager-snippet-instead-of-using-the-admin-setting/143298/1 "2020-03-04T11:28:29Z")

</div>

We are running a production and staging version of our site and would like to benefit from Google Tag Manager (GTM) [environments](https://support.google.com/tagmanager/answer/6311518), so we don’t need to set up two independent containers.

Instead of using the GTM setting (see image below), I was thinking of pasting the modified tag code in `admin -> Customize -> CSS / HTML -> <head>`, which would allow to add the environment – the current GTM setting doesn’t have this option.

 ![Screen Shot 2020-03-04 at 12.17.28.png](https://global.discourse-cdn.com/meta/original/3X/4/1/41fbef15a616a45c7c8e2d78267a93638b369e18.png)

Before going ahead, I was wondering if both ways would be equivalent.  
Is there anything I’m missing?
