BigW Consortium Gitlab

_piwik.html.haml 661 Bytes
Newer Older
1
<!-- Piwik -->
Sebastian Winkler committed
2 3
:javascript
  var _paq = _paq || [];
4 5
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
Sebastian Winkler committed
6
  (function() {
7 8 9 10 11
    var u="//#{extra_config.piwik_url}/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', #{extra_config.piwik_site_id}]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
Sebastian Winkler committed
12
  })();
13 14
<noscript><p><img src="//#{extra_config.piwik_url}/piwik.php?idsite=#{extra_config.piwik_site_id}" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->