From 1a8df9006af1532d7f0e9f35c24857c616c6ae02 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 May 2022 15:47:26 +0200 Subject: [PATCH] fix matomo --- apps/remix-ide/src/app/tabs/compile-and-run.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/compile-and-run.ts b/apps/remix-ide/src/app/tabs/compile-and-run.ts index 3c0bb23d9b..d5b298e966 100644 --- a/apps/remix-ide/src/app/tabs/compile-and-run.ts +++ b/apps/remix-ide/src/app/tabs/compile-and-run.ts @@ -34,11 +34,11 @@ export class CompileAndRun extends Plugin { e.preventDefault() this.targetFileName = file await this.call('solidity', 'compile', file) - _paq.push(['trackEvent', 'ScriptExecutor', 'compile_solidity']) + _paq.push(['trackEvent', 'ScriptExecutor', 'CompileAndRun', 'compile_solidity']) } else if (file.endsWith('.js') || file.endsWith('.ts')) { e.preventDefault() this.runScript(file, false) - _paq.push(['trackEvent', 'ScriptExecutor', 'run_script']) + _paq.push(['trackEvent', 'ScriptExecutor', 'CompileAndRun', 'run_script']) } } } @@ -47,7 +47,7 @@ export class CompileAndRun extends Plugin { runScriptAfterCompilation (fileName: string) { this.targetFileName = fileName - _paq.push(['trackEvent', 'ScriptExecutor', 'request_run_script']) + _paq.push(['trackEvent', 'ScriptExecutor', 'CompileAndRun', 'request_run_script']) } async runScript (fileName, clearAllInstances) { @@ -78,7 +78,7 @@ export class CompileAndRun extends Plugin { const file = contract.object.devdoc['custom:dev-run-script'] if (file) { this.runScript(file, true) - _paq.push(['trackEvent', 'ScriptExecutor', 'run_script_after_compile']) + _paq.push(['trackEvent', 'ScriptExecutor', 'CompileAndRun', 'run_script_after_compile']) } else { this.call('notification', 'toast', 'You have not set a script to run. Set it with @custom:dev-run-script NatSpec tag.') }