added matamo eventz

pull/5344/head
STetsing 2 months ago
parent 872eff9ca5
commit f39c7771f8
  1. 4
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -681,6 +681,8 @@ export const EditorUI = (props: EditorUIProps) => {
setTimeout(async () => {
props.plugin.call('remixAI', 'chatPipe', 'vulnerability_check', pastedCodePrompt)
}, 500)
// add matamo event
_paq.push(['trackEvent', 'ai', 'remixAI', 'vulnerability_check_pasted_code'])
},
message: (
<div>
@ -718,8 +720,6 @@ export const EditorUI = (props: EditorUIProps) => {
props.plugin.call('notification', 'modal', modalContent)
// pasteCodeRef.current = true
_paq.push(['trackEvent', 'editor', 'onDidPaste', 'more_than_10_lines'])
// const result = await props.plugin.call('remixAI', 'vulnerability_check', pastedCodePrompt)
// console.log(JSON.parse(result))
}
})

Loading…
Cancel
Save