From ada1a3a13f8056230d4d6301fcdce6093a1bff8f Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Apr 2022 09:58:03 +0200 Subject: [PATCH] add matomo _paq --- apps/remix-ide/src/blockchain/execution-context.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/remix-ide/src/blockchain/execution-context.js b/apps/remix-ide/src/blockchain/execution-context.js index 291475bcbb..6688214efc 100644 --- a/apps/remix-ide/src/blockchain/execution-context.js +++ b/apps/remix-ide/src/blockchain/execution-context.js @@ -3,6 +3,7 @@ import Web3 from 'web3' import { execution } from '@remix-project/remix-lib' import EventManager from '../lib/events' +const _paq = window._paq = window._paq || [] let web3 @@ -128,6 +129,7 @@ export class ExecutionContext { } async executionContextChange (value, endPointUrl, confirmCb, infoCb, cb) { + _paq.push(['trackEvent', 'udapp', 'providerChanged', value.context]) const context = value.context if (!cb) cb = () => { /* Do nothing. */ } if (!confirmCb) confirmCb = () => { /* Do nothing. */ }