From bb7facd03116ba449ebbee37d7b29363f10eb76a Mon Sep 17 00:00:00 2001 From: Mike Cardwell Date: Wed, 6 Oct 2010 22:35:09 +0100 Subject: [PATCH] Added Google Analytics code --- templates/web/common.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/web/common.js b/templates/web/common.js index 2ea4d9a..3aef463 100644 --- a/templates/web/common.js +++ b/templates/web/common.js @@ -114,3 +114,12 @@ if (document.location.href.match(/^https?:\/\/([^\/]+\.)*exim\.org\//)) { if (jump(document.location.href.replace(/^.*#(.+)$/, '$1'))) e.preventDefault(); }); })(jQuery); + +// Google Analytics +(function($){ + window._gaq = [ + ['_setAccount', 'UA-18951566-1'], + ['_trackPageview'] + ]; + $.getScript((document.location.protocol === 'https:' ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'); +})(jQuery); -- 2.30.2