瀏覽代碼

adding GA

Dave Gandy 13 年之前
父節點
當前提交
f86fa1ba74
共有 1 個文件被更改,包括 12 次插入2 次删除
  1. 12 2
      index.html

+ 12 - 2
index.html

@@ -19,9 +19,19 @@
 
     <link rel="stylesheet" href="assets/css/site.css">
     <link rel="stylesheet" href="assets/css/prettify.css">
-
-    <!-- Le fav and touch icons -->
     <link rel="shortcut icon" href="assets/ico/favicon.ico">
+
+    <script type="text/javascript">
+        var _gaq = _gaq || [];
+        _gaq.push(['_setAccount', 'UA-30136587-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>
 </head>
 <body>