add matomo tracking to git init from status bar

pull/5370/head
Joseph Izang 5 months ago
parent 8c4bfa2d4c
commit 4b879f52e9
  1. 5
      libs/remix-ui/statusbar/src/lib/components/gitStatus.tsx

@ -52,10 +52,11 @@ export default function GitStatus({ plugin, gitBranchName, setGitBranchName }: G
}
const initializeNewGitRepo = async () => {
await plugin.call('dgitApi', 'init')
const isActive = await plugin.call('manager', 'isActive', 'dgit')
if (isLocalHost === false) {
const isActive = await plugin.call('manager', 'isActive', 'dgit')
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit')
await plugin.call('dgitApi', 'init')
;(window as any)._paq.push('trackEvent', 'statusbar', 'initNewRepo')
}
}

Loading…
Cancel
Save