gitlab-org--gitlab-foss/app/views/layouts/_piwik.html.haml

15 lines
661 B
Text
Raw Normal View History

2015-11-08 11:00:31 -05:00
<!-- Piwik -->
2014-02-23 09:06:49 -05:00
:javascript
var _paq = _paq || [];
2015-11-08 11:00:31 -05:00
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
2014-02-23 09:06:49 -05:00
(function() {
2015-11-08 11:00:31 -05:00
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-02-23 09:06:49 -05:00
})();
2015-11-08 11:00:31 -05:00
<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 -->