]> git.quilime.com - plog.git/commitdiff
Google Analytics added to header
authorGabriel Dunne <gdunne@quilime.com>
Fri, 16 Jul 2010 20:52:22 +0000 (13:52 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Fri, 16 Jul 2010 20:52:22 +0000 (13:52 -0700)
templates/head-inc.html.tpl

index 698331fa865b79b8e6a4cc984f8f69d6136e962a..4d288e9b0208a5f67ba8a1fb372cc792b42f6d35 100644 (file)
@@ -8,8 +8,23 @@
 <script type="text/javascript" src="<?= get_base_dir(); ?>/js/prettify/prettify.js"></script> 
  
 <script>
+
 $(document).ready(function() {
        prettyPrint();
 });
+
 </script> 
 
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-351774-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>
\ No newline at end of file