Skip to content

Commit

Permalink
Add Google Analytics tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Sep 2, 2014
1 parent 1afdfaf commit acdc968
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@
<style>
h2 { padding-top: 0px; }
</style>
<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-39101739-7', 'twitter.github.io');
ga('send', 'pageview');

</script>
</head>

<body>
Expand Down
9 changes: 9 additions & 0 deletions web/_layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@

<!-- Le styles -->
<link rel="stylesheet" href="/scala_school/bootstrap-1.1.0.min.css">
<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-39101739-7', 'twitter.github.io');
ga('send', 'pageview');

</script>
</head>

<body>
Expand Down

0 comments on commit acdc968

Please sign in to comment.