diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html
index 6cf019a35..b53967674 100644
--- a/_includes/google-analytics.html
+++ b/_includes/google-analytics.html
@@ -1,8 +1,10 @@
-
+
+{% endif %}
diff --git a/_layouts/viewer.html b/_layouts/viewer.html
index ca9c43a68..7cda7240e 100644
--- a/_layouts/viewer.html
+++ b/_layouts/viewer.html
@@ -70,6 +70,9 @@
}
})();
+
+ {% include google-analytics.html %}
+