Skip to content

Commit

Permalink
Merge branch 'main' into stag
Browse files Browse the repository at this point in the history
  • Loading branch information
teagu123 authored Jul 5, 2024
2 parents cd85b23 + 31d1237 commit b4f0c42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import router from './Router';
import './styles/font.css';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import ReactGA from 'react-ga';

// stale time 10분으로 설정
const queryClient = new QueryClient({
Expand All @@ -20,6 +21,14 @@ const queryClient = new QueryClient({
},
});

//Google Analytics
// const gaTrackingId = process.env.REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID; // 환경 변수에 저장된 추적ID 가져오기

// if (gaTrackingId) {
// ReactGA.initialize(gaTrackingId, { debug: true });
// ReactGA.pageview(window.location.pathname);
// }

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement,
);
Expand Down

0 comments on commit b4f0c42

Please sign in to comment.