add matomo tracking to git init from status bar

pull/4960/head
Joseph Izang 4 months ago
parent bab2a94c5a
commit 15e43f0ca7
  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