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) {