diff --git a/_includes/analytics.html b/_includes/analytics.html
new file mode 100644
index 00000000..e58ca9c2
--- /dev/null
+++ b/_includes/analytics.html
@@ -0,0 +1,9 @@
+
+
+
diff --git a/_layouts/default.html b/_layouts/default.html
index 12dd7c09..c7bda027 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -44,15 +44,8 @@
- {% if site.google_analytics %}
-
+ {% if jekyll.environment == 'production' %}
+ {% include analytics.html %}
{% endif %}
-