disable cookie setting matomo

pull/5370/head
yann300 1 year ago
parent 818886e6ca
commit ef571d9a9f
  1. 1
      apps/remix-ide/src/assets/js/loader.js
  2. 2
      libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.tsx
  3. 2
      libs/remix-ui/settings/src/lib/settingsAction.ts

@ -17,7 +17,6 @@ if (domains[window.location.hostname]) {
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setExcludedQueryParams", ["code","gist"]]);
_paq.push(["setExcludedReferrers", ["etherscan.io"]]);
_paq.push(['disableCookies']);
_paq.push(['enableJSErrorTracking']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);

@ -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