Skip to content

Commit ea7a62e

Browse files
ci-botAniket-Engg
authored andcommitted
no prompts
(cherry picked from commit 4ffa210)
1 parent e09e831 commit ea7a62e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/remix-ide/src/app/plugins/remix-ai-assistant.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ export class RemixAIAssistant extends ViewPlugin {
102102
}
103103

104104
async handleActivity(type: string, payload: any) {
105-
// Dynamic event name from ActivityType: 'typing', 'button', 'promptSend', 'streamStart', 'streamEnd'
106-
// Original: _paq.push(['trackEvent', 'remixai-assistant', `${type}-${payload}`])
107-
trackMatomoEvent(this, { category: 'ai', action: 'remixAI', name: `remixai-assistant-${type}-${payload}` as any, isClick: true })
105+
// Never log user prompts - only track the activity type
106+
const eventName = type === 'promptSend' ? 'remixai-assistant-promptSend' : `remixai-assistant-${type}-${payload}`;
107+
trackMatomoEvent(this, { category: 'ai', action: 'remixAI', name: eventName as any, isClick: true })
108108
}
109109

110110
updateComponent(state: {

0 commit comments

Comments
 (0)