add missing matomo keys

pull/5370/head
yann300 1 year ago
parent 0043ac4a0c
commit 4dd37ad059
  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