Merge pull request #4277 from ethereum/remove_matomo_settings

disable cookie setting matomo
pull/4278/head
yann300 11 months ago committed by GitHub
commit 69d226bb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.tsx
  2. 2
      libs/remix-ui/settings/src/lib/settingsAction.ts

@ -67,8 +67,6 @@ const MatomoDialog = (props) => {
const handleModalOkClick = async () => {
_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)
appManager.call('walkthrough', 'start')
setVisible(false)

@ -44,8 +44,6 @@ export const useMatomoAnalytics = (config, checked, dispatch) => {
dispatch({ type: 'useMatomoAnalytics', payload: { isChecked: checked, textClass: checked ? textDark : textSecondary } })
if (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'])
}

Loading…
Cancel
Save