diff --git a/apps/remix-ide/src/app/tabs/settings-tab.tsx b/apps/remix-ide/src/app/tabs/settings-tab.tsx index a95bf5f0cc0..3950e72a470 100644 --- a/apps/remix-ide/src/app/tabs/settings-tab.tsx +++ b/apps/remix-ide/src/app/tabs/settings-tab.tsx @@ -95,14 +95,10 @@ module.exports = class SettingsTab extends ViewPlugin { _paq.push(['optUserOut']) // revoke tracking consent _paq.push(['forgetConsentGiven']); - // OR revoke cookie consent - _paq.push(['forgetCookieConsentGiven']); } else { _paq.push(['forgetUserOptOut']) // user has given consent to process their data _paq.push(['setConsentGiven']); - // OR user has given consent to store and use cookies - _paq.push(['setCookieConsentGiven']); } this.dispatch({ ...this diff --git a/apps/remix-ide/src/assets/js/loader.js b/apps/remix-ide/src/assets/js/loader.js index ed718e63121..5938aeaf9ce 100644 --- a/apps/remix-ide/src/assets/js/loader.js +++ b/apps/remix-ide/src/assets/js/loader.js @@ -20,14 +20,17 @@ if (domains[window.location.hostname]) { _paq.push(['enableJSErrorTracking']); // require user tracking consent before processing data _paq.push(['requireConsent']); - // OR require user cookie consent before storing any cookies - _paq.push(['requireCookieConsent']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); _paq.push(['enableHeartBeatTimer']); if (!window.localStorage.getItem('config-v0.8:.remix.config') || (window.localStorage.getItem('config-v0.8:.remix.config') && !window.localStorage.getItem('config-v0.8:.remix.config').includes('settings/matomo-analytics'))) { _paq.push(['optUserOut']) + + } else { + _paq.push(['forgetUserOptOut']) + // user has given consent to process their data + _paq.push(['setConsentGiven']) } (function () { var u = "https://ethereumfoundation.matomo.cloud/"; diff --git a/libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.tsx b/libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.tsx index 93974f15b3b..b1fb029b775 100644 --- a/libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.tsx +++ b/libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.tsx @@ -59,8 +59,6 @@ const MatomoDialog = (props) => { _paq.push(['optUserOut']) // revoke tracking consent _paq.push(['forgetConsentGiven']); - // OR revoke cookie consent - _paq.push(['forgetCookieConsentGiven']); setVisible(false) } @@ -68,8 +66,6 @@ const MatomoDialog = (props) => { _paq.push(['forgetUserOptOut']) // user has given consent to process their data _paq.push(['setConsentGiven']); - // OR user has given consent to store and use cookies - _paq.push(['setCookieConsentGiven']); settings.updateMatomoAnalyticsChoice(true) setVisible(false) }