Skip to content

Commit

Permalink
chore: disable track (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
foodaka authored Jul 1, 2024
1 parent 04596a2 commit 40b3031
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pages/_app.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { GasStationProvider } from 'src/components/transactions/GasStation/GasSt
import { AppDataProvider } from 'src/hooks/app-data-provider/useAppDataProvider';
import { ModalContextProvider } from 'src/hooks/useModal';
import { Web3ContextProvider } from 'src/libs/web3-data-provider/Web3Provider';
import { useRootStore } from 'src/store/root';
import { SharedDependenciesProvider } from 'src/ui-config/SharedDependenciesProvider';

import createEmotionCache from '../src/createEmotionCache';
Expand Down Expand Up @@ -99,7 +98,7 @@ interface MyAppProps extends AppProps {
export default function MyApp(props: MyAppProps) {
const { Component, emotionCache = clientSideEmotionCache, pageProps } = props;
const getLayout = Component.getLayout ?? ((page: ReactNode) => page);
const initializeMixpanel = useRootStore((store) => store.initializeMixpanel);
// const initializeMixpanel = useRootStore((store) => store.initializeMixpanel);
const [queryClient] = useState(
() =>
new QueryClient({
Expand All @@ -111,14 +110,14 @@ export default function MyApp(props: MyAppProps) {
})
);

const MIXPANEL_TOKEN = process.env.NEXT_PUBLIC_MIXPANEL;
// const MIXPANEL_TOKEN = process.env.NEXT_PUBLIC_MIXPANEL;
useEffect(() => {
if (MIXPANEL_TOKEN) {
initializeMixpanel();
} else {
console.log('no analytics tracking');
}
}, [MIXPANEL_TOKEN, initializeMixpanel]);
// if (MIXPANEL_TOKEN) {
// initializeMixpanel();
// } else {
console.log('no analytics tracking');
// }
}, []);

return (
<CacheProvider value={emotionCache}>
Expand Down

2 comments on commit 40b3031

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.