Load self-hosted matomo analytics stats on mempool.space domain

This commit is contained in:
wiz 2020-10-10 11:42:32 +09:00
parent a8a1f4e976
commit c8d22dc536
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -37,5 +37,20 @@
<div style="font-size: 20px">&nbsp; You need to enable JS in your browser to use this website.</div>
</noscript>
<app-root></app-root>
<script type="text/javascript">
if (document.location.hostname === "mempool.space")
{
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.wiz.biz/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '5']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
}
</script>
</body>
</html>