summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGuilherme Salgado <guilherme.salgado@linaro.org>2012-01-04 14:39:05 -0300
committerGuilherme Salgado <guilherme.salgado@linaro.org>2012-01-04 14:39:05 -0300
commit3344e3f2b5cc66732aeeb9be2b1ad52c3aa7a425 (patch)
treef13fda04a8655a7e22ab69868ddbf0e78a35096d /templates
parentcf50ce99423cd1159e5dff837984db25436307f8 (diff)
Add the google analytics blurb to templates/base.html so that we gather stats about patches.l.o on Linaro's google analytics account
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 1dbbd6c..f2b4c1a 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -9,7 +9,19 @@
href="http://yui.yahooapis.com/3.3.0/build/cssgrids/grids-min.css">
<script language="JavaScript" type="text/javascript" src="/js/common.js">
</script>
-{% block headers %}{% endblock %}
+ {% block headers %}{% endblock %}
+ <script type="text/javascript">
+   var _gaq = _gaq || [];
+   _gaq.push(['_setAccount', 'UA-16756069-9']);
+   _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);
+   })();
+ </script>
</head>
<body>
<div id="title">