Skip to content

Commit f63330a

Browse files
committed
Only include analytics when in production environment
1 parent ae29c52 commit f63330a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% endif %}
4848

4949
{% seo %}
50-
{%- if site.google_analytics -%}
50+
{%- if site.google_analytics and jekyll.environment == "production" -%}
5151
{%- include google-analytics.html -%}
5252
{%- endif -%}
5353
{%- include head-scripts.html -%}

0 commit comments

Comments
 (0)