Skip to content

Commit

Permalink
Add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Jul 24, 2013
1 parent aa1dc6c commit 57ce226
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,15 @@ <h1>{{page.title}}</h1>
<script src="/js/coffee-script.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/app.coffee" type="text/coffeescript"></script>
<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-42688573-1', 'serenadejs.org');
ga('send', 'pageview');

</script>
</body>
</html>
10 changes: 10 additions & 0 deletions _layouts/splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,15 @@ <h1><a href="/">Serenade.js</a></h1>
<script src="/js/coffee-script.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/app.coffee" type="text/coffeescript"></script>
<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-42688573-1', 'serenadejs.org');
ga('send', 'pageview');

</script>
</body>
</html>

0 comments on commit 57ce226

Please sign in to comment.