Merge pull request #919 from ethereum/m4

added matomo for remix and remix-beta
pull/5370/head
yann300 4 years ago committed by GitHub
commit da6eaa8f50
  1. 9
      apps/remix-ide/src/index.html

@ -34,6 +34,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!-- Matomo -->
<script type="text/javascript">
const domains = {
'remix-alpha.ethereum.org': 27,
'remix-beta.ethereum.org': 25,
'remix.ethereum.org': 23
}
if (domains[window.location.hostname]) {
var _paq = window._paq = window._paq || []
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['disableCookies']);
@ -42,10 +48,11 @@
(function() {
var u="https://matomo.ethereum.org/";
_paq.push(['setTrackerUrl', u+'matomo.php'])
_paq.push(['setSiteId', '27'])
_paq.push(['setSiteId', domains[window.location.hostname]])
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>
<!-- End Matomo Code -->
</head>

Loading…
Cancel
Save