diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html index dc46c83..74bbc87 100644 --- a/_includes/google-analytics.html +++ b/_includes/google-analytics.html @@ -5,12 +5,12 @@ © 2017-2019 Cotes Chung MIT License --> + + diff --git a/_includes/js-selector.html b/_includes/js-selector.html index 4fb6c70..ec5c9a8 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -35,7 +35,11 @@ {% endif %} - {% if jekyll.environment == 'production' %} + + {% include google-analytics.html %} + + + {% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index 55463c3..1c3b610 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -52,12 +52,8 @@ layout: compress - {% if jekyll.environment == 'production' %} - {% include google-analytics.html %} - {% endif %} - {% include search-loader.html %} - \ No newline at end of file +