add matomo tracking

mtypes^2
Aniket-Engg 2 years ago committed by Aniket
parent f362c130c5
commit 39220f55ed
  1. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx

@ -88,6 +88,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
>
<input id="fileUpload" data-id="fileExplorerFileUpload" type="file" onChange={(e) => {
e.stopPropagation()
_paq.push(['trackEvent', 'fileExplorer', 'fileAction', action])
props.uploadFile(e.target)
e.target.value = null
}}
@ -112,6 +113,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
>
<input id="folderUpload" data-id="fileExplorerFolderUpload" type="file" onChange={(e) => {
e.stopPropagation()
_paq.push(['trackEvent', 'fileExplorer', 'fileAction', action])
props.uploadFolder(e.target)
e.target.value = null
}}

Loading…
Cancel
Save