From 8278f84bcdc66a2f082227355c8568f3cce3c8fb Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 21 Oct 2024 14:38:29 +0200 Subject: [PATCH] add matomo template-selection --- .../plugins/templates-selection/templates-selection-plugin.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx b/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx index 943021b3ae..b8f6c94523 100644 --- a/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx +++ b/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx @@ -98,6 +98,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin { } const modalResult = await this.call('notification', 'modal', modal) if (!modalResult) return + _paq.push(['trackEvent', 'template-selection', 'createWorkspace', item.value]) this.emit('createWorkspaceReducerEvent', workspaceName, item.value, item.opts, false, async (e, data) => { if (e) { const modal: AppModal = { @@ -115,6 +116,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin { } const addToCurrentWorkspace = async (item) => { + _paq.push(['trackEvent', 'template-selection', 'addToCurrentWorkspace', item.value]) this.emit('addTemplateToWorkspaceReducerEvent', item.value, item.opts, false, async (e, data) => { if (e) { const modal: AppModal = {