From ef310690ffd7dcac7cbe48237bab4ea9d75de9bc Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 29 Jan 2011 10:59:25 -0800 Subject: [PATCH] Add analytics. --- website/static/all-async.js | 8 ++++++++ website/tmpl/page.html | 1 + 2 files changed, 9 insertions(+) create mode 100644 website/static/all-async.js diff --git a/website/static/all-async.js b/website/static/all-async.js new file mode 100644 index 000000000..23f3b9d4b --- /dev/null +++ b/website/static/all-async.js @@ -0,0 +1,8 @@ + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-21060818-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); + })(); diff --git a/website/tmpl/page.html b/website/tmpl/page.html index 3260cf209..a3fe3c761 100644 --- a/website/tmpl/page.html +++ b/website/tmpl/page.html @@ -7,6 +7,7 @@ Camlistore {.end} +