Add google analytics code to header in layout
Jess Robinson [Sat, 20 Nov 2010 18:59:41 +0000 (18:59 +0000)]
share/skin/presentingperl/html/layout.html

index e51cb47..c3e2ba5 100644 (file)
@@ -5,6 +5,19 @@
     </title>
     <link rel="stylesheet" type="text/css" href="/style/layout.css">
     <link rel="stylesheet" type="text/css" href="/style/basic.css">
+     <script type="text/javascript">
+
+       var _gaq = _gaq || [];
+       _gaq.push(['_setAccount', 'UA-2382391-10']);
+       _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>
   </head>
     <body>