X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/7a17a6ffafa80ab480d0ce6e1d81155cd8228ece..bb7facd03116ba449ebbee37d7b29363f10eb76a:/templates/web/common.js 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);