From 886c7c2328b4ec8ddb9541956cc9f47776f14957 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 19 Jul 2024 16:06:30 +0100 Subject: [PATCH] Track zk template creation --- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 98e835f4c8..d8a8b7060e 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -208,6 +208,7 @@ export const createWorkspace = async ( if (workspaceTemplateName === 'semaphore' || workspaceTemplateName === 'hashchecker' || workspaceTemplateName === 'rln') { const isCircomActive = await plugin.call('manager', 'isActive', 'circuit-compiler') if (!isCircomActive) await plugin.call('manager', 'activatePlugin', 'circuit-compiler') + _paq.push(['trackEvent', 'circuit-compiler', 'template', 'create', workspaceTemplateName]) } // this call needs to be here after the callback because it calls dGitProvider which also calls this function and that would cause an infinite loop await plugin.setWorkspaces(await getWorkspaces())