Skip to content
Permalink
Browse files

Make google analytics conditional (#63)

* 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 ad39d02bdcaf4fd924a749b501f0aa87f073db29
Showing with 2 additions and 0 deletions.
  1. +2 −0 _includes/hemline.html
@@ -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/academicons.min.css' | prepend: site.baseurl | prepend: site.url }}">

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

0 comments on commit ad39d02

Please sign in to comment.
You can’t perform that action at this time.