update matomo config

pull/5370/head
yann300 12 months ago
parent 51019f4146
commit 8e2113361c
  1. 4
      apps/remix-ide/src/app/tabs/settings-tab.tsx
  2. 7
      apps/remix-ide/src/assets/js/loader.js
  3. 4
      libs/remix-ui/app/src/lib/remix-app/components/modals/matomo.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

@ -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/";

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

Loading…
Cancel
Save