Skip to content

Commit

Permalink
Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ishuah committed Aug 15, 2024
1 parent 0631fef commit d82174f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"polished": "^4.1.4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-ga4": "^2.1.0",
"react-scripts": "^5.0.0",
"recoil": "^0.7.6",
"styled-components": "^5.3.3",
Expand Down
2 changes: 2 additions & 0 deletions src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Paragraph,
} from 'grommet';
import { useRecoilState } from 'recoil';
import ReactGA from 'react-ga4';

import DataInputStep from '../components/DataInputStep';
import MapDetailStep from '../components/MapDetailStep';
Expand All @@ -32,6 +33,7 @@ const CustomTheme = {
};

function App() {
ReactGA.initialize('G-JB6NTGXKG0');
const [appState, setAppState] = useRecoilState<AppState>(recoilState);
const [smallScreenNotify, setSmallScreenNotify] = useState<boolean>(true);

Expand Down

0 comments on commit d82174f

Please sign in to comment.