Skip to content

Commit

Permalink
See #35. Implement Google Analytics (basic, passive analytics).
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed May 6, 2014
1 parent 200c0bd commit e8fb8b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/templates/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,18 @@
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="{{assets}}/bower/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- Google Analyics -->
<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-42138806-1', 'auto');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
</script>

</body>
</html>

0 comments on commit e8fb8b1

Please sign in to comment.