X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/cec50f4a763e8cbd9855ece5af43876471aec874..07ab188d70f8e090ad79090fb467b7f1c1d72ef9:/forum/skins/default/templates/footer.html?ds=sidebyside
diff --git a/forum/skins/default/templates/footer.html b/forum/skins/default/templates/footer.html
index b92f06b..e8af78f 100644
--- a/forum/skins/default/templates/footer.html
+++ b/forum/skins/default/templates/footer.html
@@ -35,15 +35,17 @@
{% if settings.GOOGLE_ANALYTICS_KEY %}
-
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
+ _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);
+ })();
+
{% endif %}