Skip to content

Commit

Permalink
add google analytics; closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 10, 2015
1 parent c6b2316 commit 66df628
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions _includes/ga.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<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),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-65024936-1', 'auto');
ga('send', 'pageview');

</script>
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</section>

{% include footer.html %}

{% include ga.html %}
</body>

</html>

0 comments on commit 66df628

Please sign in to comment.