]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/includes/piwik.html
39f69eca5e5eaf97d14bbcca09cfd3e71b5f90f8
[panikweb.git] / panikweb_templates / templates / includes / piwik.html
1 {% if enabled %}
2 <!-- Piwik -->
3 <script type="text/javascript">
4   var _paq = _paq || [];
5   _paq.push(["trackPageView"]);
6   _paq.push(["enableLinkTracking"]);
7
8   (function() {
9     var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.radiopanik.org/";
10     _paq.push(["setTrackerUrl", u+"piwik.php"]);
11     _paq.push(["setSiteId", 1]);
12     var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
13     g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
14   })();
15 </script>
16 <!-- End Piwik Code -->
17 {% endif %}