add missing matomo keys

pull/4275/head
yann300 1 year ago
parent 80c48176a1
commit d79cb93400
  1. 3
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx
  2. 2
      libs/remix-ui/renderer/src/lib/renderer.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'])
},
}

@ -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)

Loading…
Cancel
Save