Add GA.
authorJuriy Zaytsev <kangax@gmail.com>
Mon, 15 Feb 2010 14:03:35 +0000 (09:03 -0500)
committerJuriy Zaytsev <kangax@gmail.com>
Mon, 15 Feb 2010 14:03:35 +0000 (09:03 -0500)
master.js
src/license.txt

index 30dcde6..54bc27f 100644 (file)
--- a/master.js
+++ b/master.js
     }
   };
   
+})();
+
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-1128111-22']);
+_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';
+  document.getElementsByTagName('head')[0].appendChild(ga);
 })();
\ No newline at end of file
index a299981..38d469b 100644 (file)
@@ -19,4 +19,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
+OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file