debian-mirror-gitlab/app/views/layouts/_piwik.html.haml

16 lines
699 B
Text
Raw Normal View History

2015-11-26 14:37:03 +05:30
<!-- Piwik -->
2017-09-10 17:25:29 +05:30
-# haml-lint:disable InlineJavaScript
2014-09-02 18:07:02 +05:30
:javascript
var _paq = _paq || [];
2015-11-26 14:37:03 +05:30
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
2014-09-02 18:07:02 +05:30
(function() {
2015-11-26 14:37:03 +05:30
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);
2014-09-02 18:07:02 +05:30
})();
2015-11-26 14:37:03 +05:30
<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 -->