disable matomo

pull/995/head
yann300 4 years ago
parent bc68a88146
commit 55e34a27ad
  1. 7
      apps/remix-ide/src/app.js
  2. 4
      apps/remix-ide/src/index.html

@ -366,7 +366,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
} }
// Ask to opt in to Matomo for remix, remix-alpha and remix-beta // Ask to opt in to Matomo for remix, remix-alpha and remix-beta
if (window.location.hostname.includes('.ethereum.org') && !registry.get('config').api.exists('settings/matomo-analytics')) { const matomoDomains = {
'remix-alpha.ethereum.org': 27,
'remix-beta.ethereum.org': 25
// 'remix.ethereum.org': 23
}
if (matomoDomains[window.location.hostname] && !registry.get('config').api.exists('settings/matomo-analytics')) {
modalDialog( modalDialog(
'Help us to improve Remix IDE', 'Help us to improve Remix IDE',
yo` yo`

@ -36,8 +36,8 @@
<script type="text/javascript"> <script type="text/javascript">
const domains = { const domains = {
'remix-alpha.ethereum.org': 27, 'remix-alpha.ethereum.org': 27,
'remix-beta.ethereum.org': 25, 'remix-beta.ethereum.org': 25
'remix.ethereum.org': 23 // 'remix.ethereum.org': 23
} }
if (domains[window.location.hostname]) { if (domains[window.location.hostname]) {
var _paq = window._paq = window._paq || [] var _paq = window._paq = window._paq || []

Loading…
Cancel
Save