Skip to content

Commit

Permalink
Make google analytics conditional (#63)
Browse files Browse the repository at this point in the history
* Make google analytics conditional

* Move comment inside the if conditional
  • Loading branch information
g-oikonomou authored and alshedivat committed Nov 4, 2019
1 parent 29e99eb commit ad39d02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/hemline.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<link rel="stylesheet" href="{{ '/assets/css/fontawesome-all.min.css' | prepend: site.baseurl | prepend: site.url }}"> <link rel="stylesheet" href="{{ '/assets/css/fontawesome-all.min.css' | prepend: site.baseurl | prepend: site.url }}">
<link rel="stylesheet" href="{{ '/assets/css/academicons.min.css' | prepend: site.baseurl | prepend: site.url }}"> <link rel="stylesheet" href="{{ '/assets/css/academicons.min.css' | prepend: site.baseurl | prepend: site.url }}">


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

0 comments on commit ad39d02

Please sign in to comment.