Skip to content

Commit

Permalink
feat: add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisaAkiron committed Apr 23, 2024
1 parent f21a9d4 commit 460e027
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"moment": "^2.29.4",
"react": "^18.0.1",
"react-dom": "^18.0.1",
"react-ga-neo": "^2.2.0",
"swr": "^1.3.0",
"three": "^0.141.0",
"unfetch": "^4.2.0",
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { BrowserTracing } from '@sentry/tracing'

import React from 'react'
import ReactDOM from 'react-dom/client'
import ReactGA from 'react-ga-neo'
import { SWRConfig } from 'swr'

import App from './App'
Expand All @@ -16,6 +17,8 @@ Sentry.init({
tracesSampleRate: 0.01,
})

ReactGA.initialize('G-FJQDKG394Z')

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<SWRConfig
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5460,6 +5460,7 @@ __metadata:
prettier: "npm:^2.7.0"
react: "npm:^18.0.1"
react-dom: "npm:^18.0.1"
react-ga-neo: "npm:^2.2.0"
rollup-plugin-analyzer: "npm:^4.0.0"
swr: "npm:^1.3.0"
tailwindcss: "npm:^3.0.24"
Expand Down Expand Up @@ -6479,6 +6480,13 @@ __metadata:
languageName: node
linkType: hard

"react-ga-neo@npm:^2.2.0":
version: 2.2.0
resolution: "react-ga-neo@npm:2.2.0"
checksum: 10c0/27614a1f4cddd88fad7575f0a2d90d1de7ae25f14e69fe49b1fb6f6f65f42d4dff71cac7ac6406fba9326abd5dbfa91e479ee47146f0c8ad62193cf83c7247ae
languageName: node
linkType: hard

"react-is@npm:^16.13.1, react-is@npm:^16.7.0":
version: 16.13.1
resolution: "react-is@npm:16.13.1"
Expand Down

0 comments on commit 460e027

Please sign in to comment.