mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Add Matomo tracking code
This commit is contained in:
parent
e140b09174
commit
aa9af35d5e
1 changed files with 16 additions and 1 deletions
|
|
@ -22,5 +22,20 @@
|
||||||
{% for x in page.js %}{% capture target %}{% include link.html url=x %}{% endcapture %}
|
{% for x in page.js %}{% capture target %}{% include link.html url=x %}{% endcapture %}
|
||||||
<script src="{{ target | strip }}"></script>
|
<script src="{{ target | strip }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _paq = window._paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="https://matomo.ethereum.org/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '22']);
|
||||||
|
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+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<noscript><p><img src="https://matomo.ethereum.org/matomo.php?idsite=22&rec=1" style="border:0;" alt="" /></p></noscript>
|
||||||
|
<!-- End Matomo Code -->
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue