add matomo template-selection

pull/5303/head
yann300 1 month ago committed by Aniket
parent 26d716eda6
commit 8278f84bcd
  1. 2
      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 = {

Loading…
Cancel
Save