From 89745cb035c2b792f0ac127e9ac054e5e80c25d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Tetsing?= Date: Wed, 3 Apr 2024 16:36:29 +0200 Subject: [PATCH] added ai_switch to matamo --- libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx index 6a6d46fb6e..e8793586fb 100644 --- a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx +++ b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx @@ -269,6 +269,7 @@ export const TabsUI = (props: TabsUIProps) => { onClick={async () => { await props.plugin.call('settings', 'updateCopilotChoice', !ai_switch) setAI_switch(!ai_switch) + ai_switch ? _paq.push(['trackEvent', 'ai', 'solcoder', 'copilot_enabled']) : _paq.push(['trackEvent', 'ai', 'solcoder', 'copilot_disabled']) }} >