From ad7c4480d2a7e0f16c9af3b35ee6946487bb08d8 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sun, 17 Jul 2011 14:59:54 +0200 Subject: [PATCH] Add google analytics tracker Vanity, vanity... --- www/analytics.js | 9 +++++++++ www/index.html | 3 ++- www/screenshots.html | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 www/analytics.js diff --git a/www/analytics.js b/www/analytics.js new file mode 100644 index 0000000..5f5599e --- /dev/null +++ b/www/analytics.js @@ -0,0 +1,9 @@ +var _gaq = _gaq || []; +_gaq.push(['_setAccount', 'UA-3407338-3']); +_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); +})(); diff --git a/www/index.html b/www/index.html index 6a54c82..f20d406 100644 --- a/www/index.html +++ b/www/index.html @@ -2,8 +2,9 @@ Quando Parte - + +
diff --git a/www/screenshots.html b/www/screenshots.html index 682af82..4bcbe1c 100644 --- a/www/screenshots.html +++ b/www/screenshots.html @@ -4,8 +4,8 @@ Quando Parte - + +
-- 1.7.9.5