diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index c5a3794ec0..5a44711266 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -351,31 +351,34 @@ Please make a backup of your contracts and start using http://remix.ethereum.org if (!registry.get('config').api.exists('settings/matomo-analytics')) { // Ask to opt in to Matomo for remix, remix-alpha and remix-beta - //if (window.location.hostname.includes('.ethereum.org')) { + // if (window.location.hostname.includes('.ethereum.org')) { + const selectInput = yo`` modalDialog( 'Help us to improve our IDE!', yo`
- >p>Remix IDE uses Matomo, an open source data analytics software to improve the use of our website.

+

Remix IDE uses Matomo, an open source data analytics software to improve the use of our website.

All data collected through Matomo is stored at our own server - no data is given to third parties.

We do not store any personally identifiable information (PII).

You can change your choice in the Settings panel.

+ ${selectInput}
`, { - label: "Sure", + label: 'Apply', fn: () => { - settings.updateMatomoAnalyticsChoice(true) - _paq.push(['forgetUserOptOut']) + settings.updateMatomoAnalyticsChoice(selectInput.checked) + if (selectInput.checked) { + _paq.push(['forgetUserOptOut']) + } else { + _paq.push(['optUserOut']) + } } }, { - label: 'Decline', - fn: () => { - settings.updateMatomoAnalyticsChoice(false) - _paq.push(['optUserOut']) - } + label: null, + fn: null } ) - //} + // } } // CONTENT VIEWS & DEFAULT PLUGINS const compileTab = new CompileTab(