Skip to content

Commit ad39d02

Browse files
g-oikonomoualshedivat
authored andcommitted
Make google analytics conditional (alshedivat#63)
* Make google analytics conditional * Move comment inside the if conditional
1 parent 29e99eb commit ad39d02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_includes/hemline.html

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<link rel="stylesheet" href="{{ '/assets/css/fontawesome-all.min.css' | prepend: site.baseurl | prepend: site.url }}">
2525
<link rel="stylesheet" href="{{ '/assets/css/academicons.min.css' | prepend: site.baseurl | prepend: site.url }}">
2626

27+
{% if site.google_analytics %}
2728
<!-- Google Analytics -->
2829
<script>
2930
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -34,3 +35,4 @@
3435
ga('create', '{{ site.google_analytics }}', 'auto');
3536
ga('send', 'pageview');
3637
</script>
38+
{% endif %}

0 commit comments

Comments
 (0)