1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/theme/templates/extras/piwik.html

19 lines
798 B
HTML
Raw Permalink Normal View History

2016-10-07 22:02:09 +01:00
{% if BUILD_PRODUCTION %}
<!-- Piwik -->
2016-10-08 20:37:55 +01:00
<script type="text/javascript" id="piwik">
2016-10-07 22:02:09 +01:00
var _paq = _paq || [];
_paq.push(["setDomains", ["*.theorangeone.net"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//{{ PIWIK.url }}/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '{{ 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);
})();
</script>
2016-10-08 22:44:45 +01:00
<noscript id="piwik"><p><img src="//{{ PIWIK.url }}/piwik.php?idsite={{ PIWIK.site_id }}" style="border:0;" alt="" /></p></noscript>
2016-10-07 22:02:09 +01:00
<!-- End Piwik Code -->
{% endif %}