Skip to content

Commit

Permalink
Change analytics to use jekyll environment variable instead of config.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhkelly committed Oct 31, 2017
1 parent 4ee15e2 commit a814d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/footer_includes.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link rel="stylesheet" href="/css/prism.css">
<script src="/javascripts/prism.min.js"></script>

{% if site.analytics %}
{% if jekyll.environment == "production" %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
Expand All @@ -15,4 +15,4 @@
ga('send', 'pageview');

</script>
{% endif %}
{% endif %}

0 comments on commit a814d60

Please sign in to comment.