Admin -> Environments -> (environment) -> Get Snippet
+ // Blank for production
+ gtm_env_auth: process.env.GTM_ENV_AUTH || ''
};
diff --git a/src/template.ejs b/src/template.ejs
index cfafbc05f..5c4e2d411 100644
--- a/src/template.ejs
+++ b/src/template.ejs
@@ -8,8 +8,9 @@
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl+'<%= htmlWebpackPlugin.options.gtm_env_auth %>';
+ f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','<%- htmlWebpackPlugin.options.gtm_id %>');
+
<% } %>
@@ -67,7 +68,7 @@
<% if (htmlWebpackPlugin.options.gtm_id) { %>
-
+
<% } %>