Skip to content

Commit b0e00d7

Browse files
committed
Do not add Google Analytics while local serving
1 parent 011c6c8 commit b0e00d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/analytics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if site.google_analytics_id %}
1+
{% if site.google_analytics_id and site.serving != true %}
22
<!-- Global site tag (gtag.js) - Google Analytics -->
33
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_id }}"></script>
44
<script>

0 commit comments

Comments
 (0)