From 263c94592e94617c38724f6522a06b658fd0a4c7 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 17 May 2022 18:04:36 +0530 Subject: [PATCH] track workspace template creation --- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 909b88d0c9..1b73f63cc0 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -12,6 +12,7 @@ import * as templateWithContent from '@remix-project/remix-ws-templates' const LOCALHOST = ' - connect to localhost - ' const NO_WORKSPACE = ' - none - ' const queryParams = new QueryParams() +const _paq = window._paq = window._paq || [] //eslint-disable-line let plugin, dispatch: React.Dispatch export const setPlugin = (filePanelPlugin, reducerDispatch) => { @@ -154,6 +155,7 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe try { const templateList = Object.keys(templateWithContent) if (!templateList.includes(template)) break + _paq.push(['trackEvent', 'workspace', 'template', template]) // @ts-ignore const files = await templateWithContent[template]() for (const file in files) {