Permalink
Browse files

Add Google Analytics tracker.

  • Loading branch information...
1 parent 8026a54 commit a74af2b52d81588fe2ab3e9a39ff01a0bc56c7df @notlion committed Aug 1, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 views/index.ejs
View
10 views/index.ejs
@@ -18,5 +18,15 @@ https://github.com/notlion/YASE
</head>
<body>
<canvas id="gl-canvas"></canvas>
+<script type="text/javascript">
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-33796321-1']);
+_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>
</body>
</html>

0 comments on commit a74af2b

Please sign in to comment.