Merge pull request #919 from ethereum/m4

added matomo for remix and remix-beta
pull/891/head
yann300 4 years ago committed by GitHub
commit c01837c7bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      apps/remix-ide/src/index.html

@ -34,18 +34,25 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || []
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['disableCookies']);
_paq.push(['enableLinkTracking']);
_paq.push(['trackPageView']);
(function() {
var u="https://matomo.ethereum.org/";
_paq.push(['setTrackerUrl', u+'matomo.php'])
_paq.push(['setSiteId', '27'])
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)
})()
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']);
_paq.push(['enableLinkTracking']);
_paq.push(['trackPageView']);
(function() {
var u="https://matomo.ethereum.org/";
_paq.push(['setTrackerUrl', u+'matomo.php'])
_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>
@ -70,8 +77,8 @@
}
return params
}
const defaultVersion = '0.8.0'
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion
const defaultVersion = '0.8.0'
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion
let assets = {
'0.8.0': ['https://use.fontawesome.com/releases/v5.8.1/css/all.css', 'assets/css/pygment_trac.css'],

Loading…
Cancel
Save