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 { circomLanguageConfig, circomTokensProvider } from './syntaxes/circom'
import { IPosition } from 'monaco-editor' import { IPosition } from 'monaco-editor'
import { RemixInLineCompletionProvider } from './providers/inlineCompletionProvider' import { RemixInLineCompletionProvider } from './providers/inlineCompletionProvider'
const _paq = (window._paq = window._paq || [])
enum MarkerSeverity { enum MarkerSeverity {
Hint = 1, Hint = 1,
@ -709,6 +710,7 @@ export const EditorUI = (props: EditorUIProps) => {
Generate the documentation for the function ${currentFunction.current} using the Doxygen style syntax Generate the documentation for the function ${currentFunction.current} using the Doxygen style syntax
` `
await props.plugin.call('openaigpt', 'message', message) 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} Explain the function ${currentFunction.current}
` `
await props.plugin.call('openaigpt', 'message', message) 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. explain why the error occurred and how to fix it.
` `
await plugin.call('openaigpt', 'message', message) await plugin.call('openaigpt', 'message', message)
_paq.push(['trackEvent', 'GPTSupport', 'askGPT']) _paq.push(['trackEvent', 'ai', 'openai', 'explainSolidityError'])
} catch (err) { } catch (err) {
console.error('unable to askGtp') console.error('unable to askGtp')
console.error(err) console.error(err)

Loading…
Cancel
Save