Skip to content

Commit

Permalink
- added google analytics tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumepotier committed Dec 16, 2014
1 parent c77a2ec commit 7169588
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _includes/google_analytics.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-34544689-3', 'auto');
ga('send', 'pageview');

</script>
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
</div>

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

0 comments on commit 7169588

Please sign in to comment.