diff --git a/package-lock.json b/package-lock.json index bbabf55..2eb873c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "samplescope", - "version": "1.3.6", + "version": "1.3.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5ff13e9..b733c55 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "samplescope", "productName": "Samplescope", - "version": "1.3.6", + "version": "1.3.7", "description": "Search samples over internet sources", "main": ".webpack/main", "repository": "github:jamland/samplescope", diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 4f9cb04..289f90a 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -5,7 +5,7 @@ import AppHeader from '@components/AppHeader'; import Settings from '@components/Settings'; import ErrorTracker from '@modules/analytics/bugsnag.renderer'; import { AppContextProvider } from './context/App.context'; -import GA4 from '@modules/analytics/ga4'; +// import GA4 from '@modules/analytics/ga4'; import './styles/global.css'; import './styles/theme.css'; @@ -15,11 +15,11 @@ import os from 'os'; const App = () => { const platform = os?.platform(); - try { - GA4.register(); - } catch (error) { - console.warn('Error registering GA4: ', error.message); - } + // try { + // GA4.register(); + // } catch (error) { + // console.warn('Error registering GA4: ', error.message); + // } return ( // @ts-ignore diff --git a/src/renderer/components/AppHeader/index.tsx b/src/renderer/components/AppHeader/index.tsx index dca744b..206aa5c 100644 --- a/src/renderer/components/AppHeader/index.tsx +++ b/src/renderer/components/AppHeader/index.tsx @@ -5,7 +5,7 @@ import { AppContext } from '~/context/App.context'; import SearchIcon from '~/components/icons/SearchIcon'; import { WithErrorBoundary } from '@components/Errors/ErrorBoundary'; import eventEmitter from '@modules/EventEmitter'; -import GA4 from '@modules/analytics/ga4'; +// import GA4 from '@modules/analytics/ga4'; import freesoundLogo from '~/images/samplescope-icon.png'; import './index.css'; @@ -20,9 +20,9 @@ const AppHeader: React.FC<{}> = () => { () => { setDebouncedValue(inputValue); - GA4.sendEvent('search', { - search_term: inputValue ?? '', - }); + // GA4.sendEvent('search', { + // search_term: inputValue ?? '', + // }); // analytics.trackEvent({ // name: 'SEARCH_TEXT', // action: 'Search query changed', diff --git a/src/renderer/components/SearchResults/ResultDetails/DownloadButton.tsx b/src/renderer/components/SearchResults/ResultDetails/DownloadButton.tsx index 2b5f432..d8ba80f 100644 --- a/src/renderer/components/SearchResults/ResultDetails/DownloadButton.tsx +++ b/src/renderer/components/SearchResults/ResultDetails/DownloadButton.tsx @@ -4,7 +4,7 @@ import { DownloadCloud } from 'react-feather'; import { SelectedSample } from '~/context/App.context'; import { SamplePreview } from '@modules/freesound-search/freesound.types'; -import GA4 from '@modules/analytics/ga4'; +// import GA4 from '@modules/analytics/ga4'; interface Props { sample: SamplePreview; @@ -65,10 +65,10 @@ const DownloadButton: React.FC = ({ sample }: Props) => { setDownloading(true); setProgress(0); - GA4.sendEvent('download', { - file_name: `${sample.id} ${sample.name}`, - sample_id: sample.id, - }); + // GA4.sendEvent('download', { + // file_name: `${sample.id} ${sample.name}`, + // sample_id: sample.id, + // }); } };