1. If you are using configuration then two containers will need to be created for each environment, each with a different GTM-xxxx.

For example: image066

 

  1. The GTM with a live account (GTM-LIVE), staging account (GTM-DEV) will need to be set using server-side settings, because javascript does not load within <noscript> tags.

<body>

<!– Google Tag Manager container for GA –>

<noscript>

<iframe src=”//www.googletagmanager.com/ns.html?id=GTM-xxxx>

</iframe>

</noscript>

<script>

window,document,’script’,’dataLayer’,’GTM-xxxx‘);

</script>

 

  1. Note: the GA UA-xxxx-x ID is set within GTM (using a macro default), there is no need for a cascading hostname lookup.

image067

0117 3361103