|
@@ -1,4 +1,5 @@
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
|
+{% if site.google_analytics and jekyll.environment == 'production' %}
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analytics }}"></script>
|
|
|
<script>
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -7,3 +8,4 @@
|
|
|
|
|
|
gtag('config', '{{ google_analytics }}');
|
|
|
</script>
|
|
|
+{% endif %}
|