diff --git a/config/template.dev.json b/config/template.dev.json
deleted file mode 100644
index 3505bf7..0000000
--- a/config/template.dev.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "apiHost": "https://dev.account.ely.by"
-}
diff --git a/config/template.env.js b/config/template.env.js
new file mode 100644
index 0000000..53ff779
--- /dev/null
+++ b/config/template.env.js
@@ -0,0 +1,4 @@
+module.exports = {
+ apiHost: 'https://dev.account.ely.by',
+ ga: {id: 'UA-XXXXX-Y'}
+};
diff --git a/src/index.ejs b/src/index.ejs
index 47f8dc3..e66c4a6 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -22,5 +22,23 @@
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<% } %>
+
+<% if (htmlWebpackPlugin.options.ga) {
+ if (!htmlWebpackPlugin.options.ga.id) {
+ throw new Error('ga.id is required to enable google analytics');
+ }
+%>
+
+
+
+<% } %>