diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 4c02468f7e..5e8b7ac863 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -354,6 +354,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org const onAcceptMatomo = () => { _paq.push(['forgetUserOptOut']) + // @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used + document.cookie = 'mtm_consent_removed=; expires=Thu, 01 Jan 1970 00:00:01 GMT;' settings.updateMatomoAnalyticsChoice(true) const el = document.getElementById('modal-dialog') el.parentElement.removeChild(el) diff --git a/apps/remix-ide/src/app/tabs/settings-tab.js b/apps/remix-ide/src/app/tabs/settings-tab.js index 8d90cae8f6..b692fb2611 100644 --- a/apps/remix-ide/src/app/tabs/settings-tab.js +++ b/apps/remix-ide/src/app/tabs/settings-tab.js @@ -131,6 +131,8 @@ module.exports = class SettingsTab extends ViewPlugin { if (this.config.get('settings/matomo-analytics')) { this._view.useMatomoAnalytics.setAttribute('checked', '') _paq.push(['forgetUserOptOut']) + // @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used + document.cookie = 'mtm_consent_removed=; expires=Thu, 01 Jan 1970 00:00:01 GMT;' } else { _paq.push(['optUserOut']) } @@ -234,6 +236,8 @@ module.exports = class SettingsTab extends ViewPlugin { elementStateChanged(self._view.useMatomoAnalyticsLabel, isChecked) if (event.target.checked) { _paq.push(['forgetUserOptOut']) + // @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used + document.cookie = 'mtm_consent_removed=; expires=Thu, 01 Jan 1970 00:00:01 GMT;' } else { _paq.push(['optUserOut']) }