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']) _paq.push(['optUserOut'])
// revoke tracking consent // revoke tracking consent
_paq.push(['forgetConsentGiven']); _paq.push(['forgetConsentGiven']);
// OR revoke cookie consent
_paq.push(['forgetCookieConsentGiven']);
} else { } else {
_paq.push(['forgetUserOptOut']) _paq.push(['forgetUserOptOut'])
// user has given consent to process their data // user has given consent to process their data
_paq.push(['setConsentGiven']); _paq.push(['setConsentGiven']);
// OR user has given consent to store and use cookies
_paq.push(['setCookieConsentGiven']);
} }
this.dispatch({ this.dispatch({
...this ...this

@ -20,14 +20,17 @@ if (domains[window.location.hostname]) {
_paq.push(['enableJSErrorTracking']); _paq.push(['enableJSErrorTracking']);
// require user tracking consent before processing data // require user tracking consent before processing data
_paq.push(['requireConsent']); _paq.push(['requireConsent']);
// OR require user cookie consent before storing any cookies
_paq.push(['requireCookieConsent']);
_paq.push(['trackPageView']); _paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
_paq.push(['enableHeartBeatTimer']); _paq.push(['enableHeartBeatTimer']);
if (!window.localStorage.getItem('config-v0.8:.remix.config') || 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'))) { (window.localStorage.getItem('config-v0.8:.remix.config') && !window.localStorage.getItem('config-v0.8:.remix.config').includes('settings/matomo-analytics'))) {
_paq.push(['optUserOut']) _paq.push(['optUserOut'])
} else {
_paq.push(['forgetUserOptOut'])
// user has given consent to process their data
_paq.push(['setConsentGiven'])
} }
(function () { (function () {
var u = "https://ethereumfoundation.matomo.cloud/"; var u = "https://ethereumfoundation.matomo.cloud/";

@ -59,8 +59,6 @@ const MatomoDialog = (props) => {
_paq.push(['optUserOut']) _paq.push(['optUserOut'])
// revoke tracking consent // revoke tracking consent
_paq.push(['forgetConsentGiven']); _paq.push(['forgetConsentGiven']);
// OR revoke cookie consent
_paq.push(['forgetCookieConsentGiven']);
setVisible(false) setVisible(false)
} }
@ -68,8 +66,6 @@ const MatomoDialog = (props) => {
_paq.push(['forgetUserOptOut']) _paq.push(['forgetUserOptOut'])
// user has given consent to process their data // user has given consent to process their data
_paq.push(['setConsentGiven']); _paq.push(['setConsentGiven']);
// OR user has given consent to store and use cookies
_paq.push(['setCookieConsentGiven']);
settings.updateMatomoAnalyticsChoice(true) settings.updateMatomoAnalyticsChoice(true)
setVisible(false) setVisible(false)
} }

Loading…
Cancel
Save