Commit 9863ad72633ca827f418353a7c6f61be8adcc27c

Lea Verou 2012-07-31T18:44:17

Added Google Analytics

diff --git a/download.html b/download.html
index 409f883..37419ba 100644
--- a/download.html
+++ b/download.html
@@ -79,6 +79,8 @@ section.download {
 </style>
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/examples.html b/examples.html
index 587f84d..a0635f2 100644
--- a/examples.html
+++ b/examples.html
@@ -9,6 +9,8 @@
 <link rel="stylesheet" href="prism.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/extending.html b/extending.html
index 4e63f56..eddb26c 100644
--- a/extending.html
+++ b/extending.html
@@ -9,6 +9,8 @@
 <link rel="stylesheet" href="prism.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body class="language-javascript">
 
diff --git a/faq.html b/faq.html
index 3b3a718..c0f9e2b 100644
--- a/faq.html
+++ b/faq.html
@@ -18,6 +18,8 @@
 </style>
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/index.html b/index.html
index 631ec3b..1a0aa12 100644
--- a/index.html
+++ b/index.html
@@ -13,6 +13,8 @@
 <link rel="stylesheet" href="prism.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/plugins/autolinker/index.html b/plugins/autolinker/index.html
index 862f4c4..ba76140 100644
--- a/plugins/autolinker/index.html
+++ b/plugins/autolinker/index.html
@@ -11,6 +11,8 @@
 <link rel="stylesheet" href="plugins/autolinker/prism-autolinker.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/plugins/index.html b/plugins/index.html
index f1261c2..6209b27 100644
--- a/plugins/index.html
+++ b/plugins/index.html
@@ -11,6 +11,8 @@
 <link rel="stylesheet" href="plugins/line-highlight/prism-line-highlight.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/plugins/line-highlight/index.html b/plugins/line-highlight/index.html
index 921e6b6..7f978eb 100644
--- a/plugins/line-highlight/index.html
+++ b/plugins/line-highlight/index.html
@@ -11,6 +11,8 @@
 <link rel="stylesheet" href="plugins/line-highlight/prism-line-highlight.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/plugins/show-invisibles/index.html b/plugins/show-invisibles/index.html
index 77b62cc..ad762d4 100644
--- a/plugins/show-invisibles/index.html
+++ b/plugins/show-invisibles/index.html
@@ -11,6 +11,8 @@
 <link rel="stylesheet" href="plugins/show-invisibles/prism-show-invisibles.css" data-noprefix />
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>
 
diff --git a/templates/header-main.html b/templates/header-main.html
index 0599064..70e1052 100644
--- a/templates/header-main.html
+++ b/templates/header-main.html
@@ -5,7 +5,4 @@
 <p>
 	Prism is a new lightweight, extensible syntax highlighter, built with modern web standards in mind.
  	It’s a spin-off from <a href="http://dabblet.com">Dabblet</a> and is tested there daily by thousands.
-</p>
-
-<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
-<script src="http://www.google-analytics.com/ga.js" async></script>
\ No newline at end of file
+</p>
\ No newline at end of file
diff --git a/test.html b/test.html
index 0f64fec..0fea75d 100644
--- a/test.html
+++ b/test.html
@@ -38,6 +38,8 @@ textarea {
 </style>
 <script src="prefixfree.min.js"></script>
 
+<script>var _gaq = [['_setAccount', 'UA-33746269-1'], ['_trackPageview']];</script>
+<script src="http://www.google-analytics.com/ga.js" async></script>
 </head>
 <body>