diff options
author | Guilherme Salgado <guilherme.salgado@linaro.org> | 2012-01-04 14:39:05 -0300 |
---|---|---|
committer | Guilherme Salgado <guilherme.salgado@linaro.org> | 2012-01-04 14:39:05 -0300 |
commit | 3344e3f2b5cc66732aeeb9be2b1ad52c3aa7a425 (patch) | |
tree | f13fda04a8655a7e22ab69868ddbf0e78a35096d /templates | |
parent | cf50ce99423cd1159e5dff837984db25436307f8 (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.html | 14 |
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"> |