diff --git a/_includes/head.html b/_includes/head.html
index 5e382b4..84925ce 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -58,7 +58,7 @@
- {%- if jekyll.environment == 'production' and site.google_analytics -%}
- {%- include google-analytics.html -%}
- {%- endif -%}
+ {% if jekyll.environment == 'production' %}
+ {% include google-analytics.html %}
+ {% endif %}