From 98ca57c4a1b4a5560667e425e76e5ad523f2aa61 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Fri, 15 Jun 2012 15:37:52 +0100 Subject: [PATCH] Added Google Analytics. --- index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.html b/index.html index c82ea7e..ad8ea7e 100644 --- a/index.html +++ b/index.html @@ -41,6 +41,16 @@ $('.player').tooltip(); }); }); + + // Google Analytics + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-32675598-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); + })();