Permalink
Browse files

added Google Analytics tracking code to the HTML files.

  • Loading branch information...
1 parent a9fa406 commit be8e33cddecee7fb8ca85a21b68619f6ce719723 @agentzh agentzh committed Mar 7, 2013
Showing with 26 additions and 0 deletions.
  1. +13 −0 utils/gen-html-index-cn.pl
  2. +13 −0 utils/gen-html-index-en.pl
@@ -25,6 +25,19 @@
<head>
<title>agentzh 的 Nginx 教程(版本 $ver)</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-24724965-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><h2>agentzh 的 Nginx 教程(版本 $ver)</h2>
<h3>目录</h3>
@@ -26,6 +26,19 @@
<title>agentzh's Nginx Tutorials (version $ver)</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="tutorial.css"/>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-24724965-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><h2>agentzh's Nginx Tutorials (version $ver)</h2>
<h3>Table of Contents</h3>

0 comments on commit be8e33c

Please sign in to comment.