diff --git a/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx b/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx index 1dde824c8a8..dbe2dcb4e5a 100644 --- a/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx +++ b/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx @@ -6,6 +6,7 @@ import React, { useCallback } from 'react'; import { ICompletions, IModel, RemoteInferencer, IRemoteModel, IParams, GenerationParams, CodeExplainAgent } from '@remix/remix-ai-core'; import { CustomRemixApi } from '@remix-api' import { PluginViewWrapper } from '@remix-ui/helper' +const _paq = (window._paq = window._paq || []) type chatRequestBufferT = { [key in keyof T]: T[key] @@ -199,6 +200,7 @@ export class RemixAIPlugin extends ViewPlugin { else { console.log("chatRequestBuffer is not empty. First process the last request.") } + _paq.push(['trackEvent', 'ai', 'remixAI_chat', 'askFromTerminal']) } async ProcessChatRequestBuffer(params:IParams=GenerationParams){