add matomo _paq

pull/2265/head^2
yann300 3 years ago
parent 3236ff792c
commit 87a1a33173
  1. 2
      apps/remix-ide/src/blockchain/execution-context.js

@ -3,6 +3,7 @@
import Web3 from 'web3' import Web3 from 'web3'
import { execution } from '@remix-project/remix-lib' import { execution } from '@remix-project/remix-lib'
import EventManager from '../lib/events' import EventManager from '../lib/events'
const _paq = window._paq = window._paq || []
let web3 let web3
@ -128,6 +129,7 @@ export class ExecutionContext {
} }
async executionContextChange (value, endPointUrl, confirmCb, infoCb, cb) { async executionContextChange (value, endPointUrl, confirmCb, infoCb, cb) {
_paq.push(['trackEvent', 'udapp', 'providerChanged', value.context])
const context = value.context const context = value.context
if (!cb) cb = () => { /* Do nothing. */ } if (!cb) cb = () => { /* Do nothing. */ }
if (!confirmCb) confirmCb = () => { /* Do nothing. */ } if (!confirmCb) confirmCb = () => { /* Do nothing. */ }

Loading…
Cancel
Save