Skip to content

Commit

Permalink
Merge pull request #280 from jeffeb3/fix/google-analytics
Browse files Browse the repository at this point in the history
try to get google analytics working again
  • Loading branch information
jeffeb3 authored Sep 30, 2024
2 parents 7316d0e + 191e077 commit 3c7d0ad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
14 changes: 5 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"react-bootstrap": "^2.10.2",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-ga": "^3.3.1",
"react-ga4": "^2.1.0",
"react-icons": "^5.2.1",
"react-konva": "^18.2.10",
"react-redux": "^9.1.2",
Expand Down
7 changes: 2 additions & 5 deletions src/features/app/reactGA.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import ReactGA from "react-ga"
import ReactGA from "react-ga4"

ReactGA.initialize("UA-126702426-1", {
debug: false, // Set to true to see debug info in the console
})
ReactGA.pageview(window.location.pathname + window.location.search)
ReactGA.initialize("UA-126702426-1")
2 changes: 1 addition & 1 deletion src/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import "jest-canvas-mock"

jest.mock("react-ga")
jest.mock("react-ga4")

0 comments on commit 3c7d0ad

Please sign in to comment.