Commits

Matthew Turk  committed 4491958

Google Analytics

  • Participants
  • Parent commits 9551999

Comments (0)

Files changed (1)

File ythub/templates/layout.html

     <script src="/static/bootstrap/js/bootstrap.js"></script> 
     <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script> 
     <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script> 
+    <script type="text/javascript">
+      var _gaq = _gaq || [];
+      _gaq.push(['_setAccount', 'UA-391373-2']);
+      _gaq.push(['_setDomainName', 'yt-project.org']);
+      _gaq.push(['_setAllowHash', false]);
+      _gaq.push(['_trackPageview']);
+      (function() {
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+      })();
+    </script>
     <script>
     /* From http://www.grimmdude.com/confirming-a-link-click-with-jquery/ */