From d79cb9340028c85d12527c568e728474ae1bbecc Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 28 Nov 2023 10:59:26 +0100 Subject: [PATCH] add missing matomo keys --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 3 +++ libs/remix-ui/renderer/src/lib/renderer.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index cc2638efa4..f53567cb79 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -20,6 +20,7 @@ import './remix-ui-editor.css' import { circomLanguageConfig, circomTokensProvider } from './syntaxes/circom' import { IPosition } from 'monaco-editor' import { RemixInLineCompletionProvider } from './providers/inlineCompletionProvider' +const _paq = (window._paq = window._paq || []) enum MarkerSeverity { Hint = 1, @@ -709,6 +710,7 @@ export const EditorUI = (props: EditorUIProps) => { Generate the documentation for the function ${currentFunction.current} using the Doxygen style syntax ` await props.plugin.call('openaigpt', 'message', message) + _paq.push(['trackEvent', 'ai', 'openai', 'generateDocumentation']) }, } @@ -727,6 +729,7 @@ export const EditorUI = (props: EditorUIProps) => { Explain the function ${currentFunction.current} ` await props.plugin.call('openaigpt', 'message', message) + _paq.push(['trackEvent', 'ai', 'openai', 'explainFunction']) }, } diff --git a/libs/remix-ui/renderer/src/lib/renderer.tsx b/libs/remix-ui/renderer/src/lib/renderer.tsx index 34b956ee7f..f79cec142f 100644 --- a/libs/remix-ui/renderer/src/lib/renderer.tsx +++ b/libs/remix-ui/renderer/src/lib/renderer.tsx @@ -78,7 +78,7 @@ export const Renderer = ({message, opt = {}, plugin}: RendererProps) => { explain why the error occurred and how to fix it. ` await plugin.call('openaigpt', 'message', message) - _paq.push(['trackEvent', 'GPTSupport', 'askGPT']) + _paq.push(['trackEvent', 'ai', 'openai', 'explainSolidityError']) } catch (err) { console.error('unable to askGtp') console.error(err)