Skip to content

Commit

Permalink
Merge pull request #4277 from ethereum/remove_matomo_settings
Browse files Browse the repository at this point in the history
disable cookie setting matomo
  • Loading branch information
yann300 committed Nov 29, 2023
2 parents 18b45da + fb61693 commit 69d226b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions libs/remix-ui/settings/src/lib/settingsAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
}
Expand Down

0 comments on commit 69d226b

Please sign in to comment.