diff --git a/_includes/google_analytics.html b/_includes/google_analytics.html new file mode 100644 index 000000000..32b3c9b8c --- /dev/null +++ b/_includes/google_analytics.html @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html index 77daa89c0..9b89e6e9e 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -13,6 +13,10 @@ {%-seo title=false-%} {%-feed_meta-%} + + {%- if jekyll.environment == 'production' and site.google_analytics -%} + {%- include google_analytics.html -%} + {%- endif -%}