summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2013-11-11 18:21:53 +0100
committerAlex Legler <alex@a3li.li>2013-11-11 18:21:53 +0100
commit833ae865004a421a12909df74cf825570e1d622b (patch)
tree3242912ce880fd554ab88a33fb04e7a591fb3fab /views
parentOnly display active notices (diff)
downloadinfra-status-833ae865004a421a12909df74cf825570e1d622b.tar.gz
infra-status-833ae865004a421a12909df74cf825570e1d622b.tar.bz2
infra-status-833ae865004a421a12909df74cf825570e1d622b.zip
Add piwik code
Diffstat (limited to 'views')
-rw-r--r--views/layout.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/views/layout.erb b/views/layout.erb
index f3917a9..7d90156 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -100,5 +100,18 @@
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/bootstrap.js"></script>
+<script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(["trackPageView"]);
+ _paq.push(["enableLinkTracking"]);
+
+ (function() {
+ var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.gentoo.org/";
+ _paq.push(["setTrackerUrl", u+"piwik.php"]);
+ _paq.push(["setSiteId", "5"]);
+ var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
+ g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
+ })();
+</script>
</body>
</html>