Skip to content

Commit

Permalink
Add Google Analytics tracking code to main page template header
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed Jan 29, 2016
1 parent 36f9c5c commit aee6976
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions talks/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
<!-- bootstrap.js -->
<script src="{% static "bootstrap/js/bootstrap.min.js" %}"></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-37957799-1', 'auto');
ga('send', 'pageview');

</script>

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
Expand Down

0 comments on commit aee6976

Please sign in to comment.