Add google analytics tracker
authorLuciano Montanaro <mikelima@cirulla.net>
Sun, 17 Jul 2011 12:59:54 +0000 (14:59 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Sun, 17 Jul 2011 12:59:54 +0000 (14:59 +0200)
Vanity, vanity...

www/analytics.js [new file with mode: 0644]
www/index.html
www/screenshots.html

diff --git a/www/analytics.js b/www/analytics.js
new file mode 100644 (file)
index 0000000..5f5599e
--- /dev/null
@@ -0,0 +1,9 @@
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-3407338-3']);
+_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);
+})();
index 6a54c82..f20d406 100644 (file)
@@ -2,8 +2,9 @@
 <html lang="en_US">
        <head>
                <title>Quando Parte</title>
-               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
+               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
                <link rel="stylesheet" type="text/css" href="default.css" />
+               <script type="text/javascript" src="./analytics.js"></script> 
        </head>
        <body>
                <div class="header">
index 682af82..4bcbe1c 100644 (file)
@@ -4,8 +4,8 @@
                <title>Quando Parte</title>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
                <link rel="stylesheet" type="text/css" href="default.css" />
-               <script type="text/javascript" src="./screenshot-generator.js"> 
-               </script>
+               <script type="text/javascript" src="./screenshot-generator.js"></script>
+               <script type="text/javascript" src="./analytics.js"/></script>
        </head>
        <body>
                <div class="header">