Skip to content

Commit

Permalink
add google analytics tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilevos committed Aug 2, 2023
1 parent 3874c67 commit 5d5011b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/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 frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"axios": "^0.24.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-ga4": "^2.1.0",
"react-loading": "^2.0.3",
"react-scripts": "5.0.0",
"web-vitals": "^2.1.2"
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { useTheme, ThemeProvider } from '@mui/material/styles'
import { Snapshot } from './models/Snapshot'
import HeaderBar from './components/HeaderBar'
import Content from './components/Content'
import ReactGA from "react-ga4";

ReactGA.initialize("G-63BFNDZ30Q");

export function App() {
const theme = useTheme()
Expand Down

0 comments on commit 5d5011b

Please sign in to comment.